Again irreducible
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The fraction is called regular irreducible, if and . Find the number of regular irreducible fractions with the denominator .
Input
Each line is a separate test case that contains one integer . The last line contains and is not processed. The number of test cases is no more than .
Output
For each value of print in a separate line the number of regular irreducible fractions with the denominator .
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 46%