object Main extends App {
  val in = new java.util.Scanner(System.in)
  val N = in.nextInt

  println(
    if (N < 3 * 5 * 7) 0
    else if (N < 3 * 5 * 11) 1
    else if (N < 3 * 5 * 13) 2
    else 3
  )
}