import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int Nsc = sc.nextInt(); Nsc sc.nextInt() sc.nextInt sc int anscnt = 0; anscnt 0 for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		} int j = 1; int j = 1; j 1 j <= Nsc j Nsc j++ j++ j {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		} {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		} int N = j; N j int cnt = 0; cnt 0 for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			if(N % i == 0) {
				cnt ++;
			}
		} {
			if(N % i == 0) {
				cnt ++;
			}
		} if(N % i == 0) {
				cnt ++;
			} N % i == 0 N % i N i 0 {
				cnt ++;
			} cnt ++ cnt if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		} N % 2 ==1 N % 2 N 2 1 {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		} if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		} cnt == 8 cnt 8 {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		} anscnt ++ anscnt System.out.println(anscnt) System.out.println System.out System System.out anscnt sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int Nsc = sc.nextInt();
		int anscnt = 0;
		for(int j = 1; j <= Nsc; j++) {
		int N = j;

		int cnt = 0;
		for(int i = 1; i <= N; i++) {
			if(N % i == 0) {
				cnt ++;
			}
		}
		//int ans = 0;
		if(N % 2 ==1) {
		if(cnt == 8) {
			//ans = 1;
			anscnt ++;
			//System.out.println(j+":"+ans);
		}
		}
		}
		System.out.println(anscnt);
		sc.close();

	}

}
