import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int num = 0; num 0 if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		} n >= 3 * 5 * 7 n 3 * 5 * 7 3 * 5 * 7 3 5 7 {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		} num++ num if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			} n >= 3 * 5 * 11 n 3 * 5 * 11 3 * 5 * 11 3 5 11 {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			} num++ num if (n >= 3 * 5 * 13) {
					num++;
				} n >= 3 * 5 * 13 n 3 * 5 * 13 3 * 5 * 13 3 5 13 {
					num++;
				} num++ num if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		} n >= 3 * 3 * 3 * 5 n 3 * 3 * 3 * 5 3 3 * 3 * 3 * 5 3 3 3 5 {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		} num++ num if (n >= 3 * 3 * 3 * 7) {
				num++;

			} n >= 3 * 3 * 3 * 7 n 3 * 3 * 3 * 7 3 3 * 3 * 3 * 7 3 3 3 7 {
				num++;

			} num++ num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int num = 0;

		if (n >= 3 * 5 * 7) {
			num++;
			if (n >= 3 * 5 * 11) {
				num++;
				if (n >= 3 * 5 * 13) {
					num++;
				}
			}
		}

		if (n >= 3 * 3 * 3 * 5) {
			num++;
			if (n >= 3 * 3 * 3 * 7) {
				num++;

			}
		}

		System.out.println(num);

	}
}