object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val counts = for {
    a <- 1 to N
    b <- 1 to (N / a)
    if a * b < N
  } yield a to b
  println(counts.length)
}
