n = int(input()) ans = 0 appear_list = list() for i in range(1, int(n ** 0.5) + 1): if n % i == 0: if i * i == n: if str(i) + str(i) in appear_list: continue ans += 1 appear_list.append(str(i) + str(i)) else: str1 = str(i) + str(n // i) str2 = str(n // i) + str(i) if str1 not in appear_list: ans += 1 appear_list.append(str1) if str2 not in appear_list: ans += 1 appear_list.append(str2) print(ans)