n = int(input()) assert 0 <= n <= 1000000000000, 'invalid input: N' sn = int(n**0.5+0.00001) ret = 0 s = set() for i in range(1, sn+1): if n % i == 0: s.add(str(n // i) + str(i)) s.add(str(i) + str(n // i)) print(len(s))