import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a[]= new int[201]; a new int[201] 201 for (int i=1;i<200;i++) {
			a[i] ++;
		} int i=1; int i=1; i 1 i<200 i 200 i++ i++ i {
			a[i] ++;
		} {
			a[i] ++;
		} a[i] ++ a[i] a i for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		} int i=3; int i=3; i 3 i<200 i 200 i+=2 i+=2 i 2 {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		} {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		} for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			} int j=1; int j=1; j 1 j*i<200 j*i j i 200 j+=2 j+=2 j 2 {
				a[i*j]++;
			} {
				a[i*j]++;
			} a[i*j]++ a[i*j] a i*j i j int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int count =0; count 0 for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			if (a[i]==8) {
				count ++;
			}
		} {
			if (a[i]==8) {
				count ++;
			}
		} if (a[i]==8) {
				count ++;
			} a[i]==8 a[i] a i 8 {
				count ++;
			} count ++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a[]= new int[201];
		for (int i=1;i<200;i++) {
			a[i] ++;
		}
		for (int i=3;i<200;i+=2) {
			for (int j=1;j*i<200;j+=2) {
				a[i*j]++;
			}
		}
		int N =sc.nextInt();
		int count =0;
		for (int i=1;i<=N;i++) {
			if (a[i]==8) {
				count ++;
			}
		}
		System.out.println(count);
	}
}