import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    }
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    }
    
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] dp = new int[201]; dp new int[201] 201 dp[0] = 0 dp[0] dp 0 0 for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        } int i=1; int i=1; i 1 i<=200 i 200 i++ i++ i {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        } {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        } dp[i] = dp[i-1] dp[i] dp i dp[i-1] dp i-1 i 1 int count = 0; count 0 if(i % 2 == 0) {
                continue;
            } i % 2 == 0 i % 2 i 2 0 {
                continue;
            } continue; for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            } int j=1; int j=1; j 1 j<=i j i j++ j++ j {
                
                if(i % j == 0) {
                    count++;
                }
            } {
                
                if(i % j == 0) {
                    count++;
                }
            } if(i % j == 0) {
                    count++;
                } i % j == 0 i % j i j 0 {
                    count++;
                } count++ count if(count == 8) {
                dp[i]++;
            } count == 8 count 8 {
                dp[i]++;
            } dp[i]++ dp[i] dp i System.out.println(dp[N]) System.out.println System.out System System.out dp[N] dp N String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    }
    
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    }
    
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] dp = new int[201];
        dp[0] = 0;
        for(int i=1; i<=200; i++) {
            dp[i] = dp[i-1];
            int count = 0;
            if(i % 2 == 0) {
                continue;
            }
            for(int j=1; j<=i; j++) {
                
                if(i % j == 0) {
                    count++;
                }
            }
            if(count == 8) {
                dp[i]++;
            }
        }
        System.out.println(dp[N]);
        
    }
    
}