import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	}

	private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	}

	private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn System.out.println(cnt(n)) System.out.println System.out System System.out cnt(n) cnt n stdIn.close() stdIn.close stdIn String[] args args private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	} cnt {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	} if(n >= 195) {
			return 5;
		} n >= 195 n 195 {
			return 5;
		} return 5; 5 if(n >= 189) {
			return 4;
		} n >= 189 n 189 {
			return 4;
		} return 4; 4 if(n >= 165) {
			return 3;
		} n >= 165 n 165 {
			return 3;
		} return 3; 3 if(n >= 135) {
			return 2;
		} n >= 135 n 135 {
			return 2;
		} return 2; 2 if(n >= 105) {
			return 1;
		} n >= 105 n 105 {
			return 1;
		} return 1; 1 return 0; 0 int n n public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	}

	private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	}

	private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		System.out.println(cnt(n));

		stdIn.close();
	}

	private static int cnt(int n) {
		if(n >= 195) {
			return 5;
		}
		if(n >= 189) {
			return 4;
		}
		if(n >= 165) {
			return 3;
		}
		if(n >= 135) {
			return 2;
		}
		if(n >= 105) {
			return 1;
		}
		return 0;
	}
}
