import java.util.*;

public class Main {
	
	public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7};
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	}
} import java.util.*; util.* java public class Main {
	
	public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7};
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	}
} Main public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7}; PRIME new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7} public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < PRIME.length i PRIME.length PRIME PRIME.length i++ i++ i {
			if (PRIME[i] <= n) {
				count++;
			}
		} {
			if (PRIME[i] <= n) {
				count++;
			}
		} if (PRIME[i] <= n) {
				count++;
			} PRIME[i] <= n PRIME[i] PRIME i n {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	
	public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7};
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	}
} public class Main {
	
	public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7};
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	}
} Main
import java.util.*;

public class Main {
	
	public static final int[] PRIME = new int[]{3 * 5 * 7, 3 * 5 * 11, 3 * 5 * 13, 3 * 3 * 3 * 5, 3 * 3 * 3 * 7};
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		for (int i = 0; i < PRIME.length; i++) {
			if (PRIME[i] <= n) {
				count++;
			}
		}
		
		System.out.println(count);
	}
}