Number Theory
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
For the given positive integer n find the number of integers m, such that 1 ≤ m ≤ n, gcd(m, n) ≠ 1 and gcd(m, n) ≠ m. gcd is an abbreviation for "greatest common divisor".
Input
Each line contains one positive integer n (0 < n < 2^31
).
Output
For each number n print the number of required integers m.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 50%