Irreducible Fractions#338

Irreducible Fractions

1 second
128 megabytes
Easy

How many proper irreducible fractions are there in the interval with denominator not exceeding ?

Input

A natural number (n < 10001).

Output

Print the number of proper irreducible fractions in the interval with denominator not exceeding .

Examples

Example 1

Loading
Loading

Example 4

Loading
Loading