Again irreducible#423

Again irreducible

1 second
128 megabytes
Medium (≈1350)

The fraction is called regular irreducible, if 0 < m < n and GCD(m, n) = 1. Find the number of regular irreducible fractions with the denominator .

Input

Each line is a separate test case that contains one integer n~(n < 10^9). 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

Example 1

Loading
Loading