Dima & module#2936

Dima & module

1 second
256 megabytes
Hard (≈1650)

Dima loves bit operations with numbers, because they are fast, and does not like the modulo operation, because it is slow. He knows that if an integer is a power of two, then the equality x \% N = x \& (N-1) holds for any positive integer , where denotes the bitwise AND operation, and denotes taking the number modulo . Dima wants to extend this equality to other values of and now wants to know, for a given , what proportion of numbers (1 \leq x \leq 10^{100} \cdot N!) will satisfy this equality.

Input

The single line contains an integer (2 \leq N \leq 10^{18}).

Output

Print the answer as an irreducible fraction in a single line.

Examples

Example 1

Loading
Loading