import java.util.Scanner;

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

        int result = 0;
        for (int i = 1; i <= n; i = i+2) {
            int divisor = divisorCounter(i);
            if (divisor == 8) {
                result++;
            }
        }
        System.out.println(result);
    }

    private static int divisorCounter(int x) {
        int counter = 0;
        for (int i = 1; i <= x; i++) {
            if (x%i == 0) {
                counter++;
            }
        }
        return counter;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int result = 0;
        for (int i = 1; i <= n; i = i+2) {
            int divisor = divisorCounter(i);
            if (divisor == 8) {
                result++;
            }
        }
        System.out.println(result);
    }

    private static int divisorCounter(int x) {
        int counter = 0;
        for (int i = 1; i <= x; i++) {
            if (x%i == 0) {
                counter++;
            }
        }
        return counter;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

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

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

        int result = 0;
        for (int i = 1; i <= n; i = i+2) {
            int divisor = divisorCounter(i);
            if (divisor == 8) {
                result++;
            }
        }
        System.out.println(result);
    }

    private static int divisorCounter(int x) {
        int counter = 0;
        for (int i = 1; i <= x; i++) {
            if (x%i == 0) {
                counter++;
            }
        }
        return counter;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int result = 0;
        for (int i = 1; i <= n; i = i+2) {
            int divisor = divisorCounter(i);
            if (divisor == 8) {
                result++;
            }
        }
        System.out.println(result);
    }

    private static int divisorCounter(int x) {
        int counter = 0;
        for (int i = 1; i <= x; i++) {
            if (x%i == 0) {
                counter++;
            }
        }
        return counter;
    }
} Main
import java.util.Scanner;

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

        int result = 0;
        for (int i = 1; i <= n; i = i+2) {
            int divisor = divisorCounter(i);
            if (divisor == 8) {
                result++;
            }
        }
        System.out.println(result);
    }

    private static int divisorCounter(int x) {
        int counter = 0;
        for (int i = 1; i <= x; i++) {
            if (x%i == 0) {
                counter++;
            }
        }
        return counter;
    }
}