import java.util.*;

public class Main {
    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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        }
        
        System.out.println(ans);
    }
        
    public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    }
} import java.util.*; util.* java public class Main {
    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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        }
        
        System.out.println(ans);
    }
        
    public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    }
} Main 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++){
            if(i%2 == 1 && judge(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++){
            if(i%2 == 1 && judge(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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        } int i=1; int i=1; i 1 i<=N i N i++ i++ i {
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        } {
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        } if(i%2 == 1 && judge(i) == 8){
                ans++;
            } i%2 == 1 && judge(i) == 8 i%2 == 1 i%2 i 2 1 judge(i) == 8 judge(i) judge i 8 {
                ans++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    } judge {
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    } int count = 0; count 0 for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        } int i=1; int i=1; i 1 i<=num i num i++ i++ i {
        if(num % i == 0){
        count++;
        }
        } {
        if(num % i == 0){
        count++;
        }
        } if(num % i == 0){
        count++;
        } num % i == 0 num % i num i 0 {
        count++;
        } count++ count return count; count int num num public class Main {
    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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        }
        
        System.out.println(ans);
    }
        
    public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    }
} public class Main {
    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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        }
        
        System.out.println(ans);
    }
        
    public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    }
} Main
import java.util.*;

public class Main {
    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++){
            if(i%2 == 1 && judge(i) == 8){
                ans++;
            }
        }
        
        System.out.println(ans);
    }
        
    public static int judge(int num){
        int count = 0;
        for(int i=1; i<=num; i++){
        if(num % i == 0){
        count++;
        }
        }
    
        return count;
    
    }
}
