N = int(input()) x = int(N ** 0.5) s = 0 for i in range(1, x + 1): if (N % i) == 0 and (N // i) != i: s += 2 print(s)