import java.util.Arrays; import java.util.Comparator; import java.util.PriorityQueue; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N=sc.nextInt(); boolean[] isPrime=new boolean[N+1]; Arrays.fill(isPrime, true); isPrime[0]=isPrime[1]=false; int sz=0; for(int i=2;i=0)++ans; } } System.out.println(ans); } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }