408787: GYM103317 C Cactus Juice

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

C. Cactus Juicetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Socka is venturing into the business world of the Earth Empire. He finds a vibrant market for cactus juice but he also realizes that his customers are very picky. They will only leave a tip if he serves $$$x$$$ mL of cactus juice where the number $$$x$$$ has exactly two distinct prime divisors.

So for example, Socka will get tips if he serves glasses with $$$18$$$ or $$$24$$$ mL of cactus juice but his customers won't be happy if they get $$$4$$$ or $$$8$$$ mL of cactus juice. Given that the glasses can hold any amount up to (and including) $$$n$$$ mL and the glasses cannot be empty, help Socka determine how many different sizes of cactus juice that he can serve so that he still gets a tip for every size.

Input

The first and only line of input will contain a single integer $$$n$$$ ($$$1 \leq n \leq 5000$$$) where $$$n$$$ is the maximum mL of cactus juice that still fits in a glass.

Output

A single integer with the number of sizes such that Socka still gets a tip for every size served.

ExamplesInput
11
Output
2
Input
20
Output
7
Note

In the first example, Socka can serve glasses with $$$6$$$ mL of cactus juice and $$$10$$$ mL of cactus juice and no other size satisfies our condition.

加入题单

上一题 下一题 算法标签: