n = gets.chomp.to_i
i = 0
c = 1
ans = 0
while c < n
  nc = n.clone
  nc -= c
  a = 1
  while a <= nc
    b = nc.to_f/a
    # p "a:#{a} b:#{b} c:#{c}"
    if b == b.to_i
      ans += 1
    end
    a += 1
  end
  p c
  c += 1
end
p ans