Prime Digits


Submit solution

Points: 100
Time limit: 2.0s
Memory limit: 256M

Author:
Problem types

Report the prime digits 2, 3, 5, and 7 occurring in the decimal representation of \(n\).

Input

One positive integer \(n\).

The input satisfies:

  • \(1 <= n <= 10^18\)

Output

First print present prime digits and counts in increasing digit order. After a blank line, print them in first-appearance order. Each line contains a digit and its count.

Example

Input
1
Output

Comments

There are no comments at the moment.