N = gets.to_i
count = 0

(1..N).each { |a|
  (1..N).each { |b|
    break if a*b > N 
    c = N-(a*b)
    next if c < 1
    if a*b+c == N
#      puts "a:#{a} b:#{b} c:#{c}"
      count += 1
    end
  }
}

puts count
    
  

