import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = 0;
        int[] a = new int[n+1];
        for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        }
        System.out.println(ans);
    }
}
 import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = 0;
        int[] a = new int[n+1];
        for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = 0;
        int[] a = new int[n+1];
        for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        }
        System.out.println(ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = 0;
        int[] a = new int[n+1];
        for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        }
        System.out.println(ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int ans = 0; ans 0 int[] a = new int[n+1]; a new int[n+1] n+1 n 1 for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        } int i = 1; int i = 1; i 1 i <= n i n i+=2 i+=2 i 2 {
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        } {
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        } for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            } int j = 1; int j = 1; j 1 j <= n/2 j n/2 n 2 j++ j++ j {
                if(i%j==0){a[i]++;}
            } {
                if(i%j==0){a[i]++;}
            } if(i%j==0){a[i]++;} i%j==0 i%j i j 0 {a[i]++;} a[i]++ a[i] a i if(a[i] == 7){ans++;} a[i] == 7 a[i] a i 7 {ans++;} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ans = 0;
        int[] a = new int[n+1];
        for(int i = 1; i <= n; i+=2){
            for(int j = 1; j <= n/2; j++){
                if(i%j==0){a[i]++;}
            }
            if(a[i] == 7){ans++;}
        }
        System.out.println(ans);
    }
}

