4763: Four Divisors

内存限制:256 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:1 通过:1

题目描述

F. Four Divisors
time limit per test
10 seconds
memory limit per test
768 megabytes
input
standard input
output
standard output
If an integer a is divisible by another integer b, then b is called the divisor of a.
For example: 12 has positive 6 divisors. They are 1, 2, 3, 4, 6 and 12.
Let’s define a function D(n) − number of integers between 1 and n (inclusive) which has exactly four positive divisors.
Between 1 and 10 only the integers 6, 8 and 10 has exactly four positive divisors. So, D(10)=3.
You are given an integer n. You have to calculate D(n).
Input
The only line contains integer n (1≤n≤1011) − the parameter from the problem statement.
Output
Print the only integer c − the number of integers between 1 and n with exactly four divisors.
Examples
Input
10
Output
3
Input
20
Output
5

输入样例 复制


输出样例 复制