Factoring into Prime Factors - 2#4747

Factoring into Prime Factors - 2

1 second
64 megabytes
Easy

For the given number , provide its prime factorization.

Input

The input consists of a single line containing the number (2 \leq N \leq 100000).

Output

For each prime factor of , output two numbers on a separate line: the prime divisor and its exponent in the factorization. Do not include any divisor with an exponent of . Present the pairs in ascending order based on the divisor. Refer to the examples for clarity.

Examples

Example 1

Loading
Loading