import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5); 1<=n && n<=104 1<=n 1 n n<=104 n 104 System.out.println(0) System.out.println System.out System System.out 0 if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5); 105<=n && n<=134 105<=n 105 n n<=134 n 134 System.out.println(1) System.out.println System.out System System.out 1 if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5); 135<=n && n<=164 135<=n 135 n n<=164 n 164 System.out.println(2) System.out.println System.out System System.out 2 if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5); 165<=n && n<=188 165<=n 165 n n<=188 n 188 System.out.println(3) System.out.println System.out System System.out 3 if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5); 189<=n && n<=194 189<=n 189 n n<=194 n 194 System.out.println(4) System.out.println System.out System System.out 4 if(195<=n && n<=200)
      System.out.println(5); 195<=n && n<=200 195<=n 195 n n<=200 n 200 System.out.println(5) System.out.println System.out System System.out 5 String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    if(1<=n && n<=104)
      System.out.println(0);
    else if(105<=n && n<=134)
      System.out.println(1);
    else if(135<=n && n<=164)
      System.out.println(2);
    else if(165<=n && n<=188)
      System.out.println(3);
    else if(189<=n && n<=194)
      System.out.println(4);
    else if(195<=n && n<=200)
      System.out.println(5);
  }
}