import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    }
    private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    }


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

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    }
    private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    }


} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        } int i=1; int i=1; i 1 i<=n i n i+=2 i+=2 i 2 {
            if(div(i)==8)ans++;
        } {
            if(div(i)==8)ans++;
        } if(div(i)==8)ans++; div(i)==8 div(i) div i 8 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    } div {
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    } int ans = 0; ans 0 for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
            if(n%i==0)ans++;
        } {
            if(n%i==0)ans++;
        } if(n%i==0)ans++; n%i==0 n%i n i 0 ans++ ans return ans; ans int n n public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    }
    private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    }


} public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    }
    private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    }


} Main
import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i+=2){
            if(div(i)==8)ans++;
        }
        System.out.println(ans);
    }
    private static int div(int n){
        int ans = 0;
        for(int i=1;i<=n;i++){
            if(n%i==0)ans++;
        }
        return ans;
    }


}
