n = int(input()) limit = int(n**(1/2)) + 1 numbers = [] i = 1 for i in range(1, limit): if n % i == 0: a = str(i) b = str(n//i) if a+b not in numbers: numbers.append(a+b) if b+a not in numbers: numbers.append(b+a) print(len(numbers))