import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	}

} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in List<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(3*5*7) list.add list 3*5*7 3*5*7 3 5 7 list.add(3*5*11) list.add list 3*5*11 3*5*11 3 5 11 list.add(3*5*13) list.add list 3*5*13 3*5*13 3 5 13 list.add(3*3*3*5) list.add list 3*3*3*5 3 3*3*3*5 3 3 3 5 list.add(3*3*3*7) list.add list 3*3*3*7 3 3*3*3*7 3 3 3 7 list.sort(Comparator.naturalOrder()) list.sort list Comparator.naturalOrder() Comparator.naturalOrder Comparator for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		} int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		} {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		} if(n<list.get(i)) {
				System.out.println(i);
				break;
			} n<list.get(i) n list.get(i) list.get list i {
				System.out.println(i);
				break;
			} System.out.println(i) System.out.println System.out System System.out i break; if(i==list.size()-1) System.out.println(list.size()); i==list.size()-1 i list.size()-1 list.size() list.size list 1 System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list in.close() in.close in String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	}

} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		List<Integer> list = new ArrayList<>();
		list.add(3*5*7);
		list.add(3*5*11);
		list.add(3*5*13);
		list.add(3*3*3*5);
		list.add(3*3*3*7);
		list.sort(Comparator.naturalOrder());
		for(int i=0;i<list.size();i++) {
			if(n<list.get(i)) {
				System.out.println(i);
				break;
			}
			if(i==list.size()-1) System.out.println(list.size());
		}
		in.close();

	}

}
