n = int(input()) p = int(n ** 0.5) num = 0 for i in range(1, p + 1): if n % i == 0: if str(i) + str(n // i) == str(n // i) + str(i): num += 1 else: num += 2 print(num)