import java.util.*;

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

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

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        int b = 0;        
        

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        int b = 0;        
        

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int a = 0; a 0 int b = 0; b 0 for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        } int i=1; int i=1; i 1 i<=n i n i+=2 i+=2 i 2 {
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        } {
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        } for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            } int j=1; int j=1; j 1 j<=n j n j+=2 j+=2 j 2 {
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            } {
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            } if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                } i%j==0 && i>=j i%j==0 i%j i j 0 i>=j i j {
                    a++;
                    if(a==8){
                        b++;
                    }
                } a++ a if(a==8){
                        b++;
                    } a==8 a 8 {
                        b++;
                    } b++ b a=0 a 0 System.out.print(b) System.out.print System.out System System.out b String[] args args public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        int b = 0;        
        

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    }
} public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        int b = 0;        
        

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    }
} Main
import java.util.*;

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

        for(int i=1; i<=n; i+=2){
            for(int j=1;j<=n;j+=2){
                if(i%j==0 && i>=j){
                    a++;
                    if(a==8){
                        b++;
                    }
                }
            }
            a=0;
        }
        System.out.print(b);
    }
}