Anatoly and Antitoly met on a forum about numerical injustice.
It turned out that besides their love for mathematics, they have many differences.
For example, Anatoly always strives for a fair distribution of resources and is not afraid of difficulties.
Antitoly, on the other hand, finds pleasure in the unfair distribution of resources and seeks simplicity in everything.
At the moment, Antitoly is developing his model of an ideal society, defined by the parameter $$$n$$$.
To complete his model, Antitoly needs to compute exactly one quantity — the number of integers $$$x$$$ in the range from $$$1$$$ to $$$n$$$ such that:
The first line contains an integer odd number $$$n$$$ $$$(3 \le n \le 11^{13})$$$ — the parameter of the ideal society in Antitoly's model.
Output a single integer $$$R$$$ $$$(0 \le R \le n)$$$ — the number of integers $$$x$$$ in the range from $$$1$$$ to $$$n$$$ such that:
3
0
5
0
9
1
111
4
9753113579
9563
Definition A positive integer is called prime if it has exactly two distinct divisors.
For example, the numbers $$$3$$$, $$$17$$$, and $$$59$$$ are prime, while the numbers $$$1$$$ ($$$1$$$ divisor), $$$9$$$ ($$$3$$$ divisors), $$$30$$$ ($$$8$$$ divisors), and $$$111$$$ ($$$4$$$ divisors) are not prime.
First test example
Consider each of the numbers not exceeding $$$3$$$:
Accordingly, there are no suitable numbers for Antitoly.
Second test example
Compared to the first test, two numbers are added:
So far, there are still no suitable numbers for Antitoly.
Third test example
Compared to the second test, four numbers are added: