def main(): N = int(input()) ans_set = set() if N == 1: print(1) else: for i in range(1, N): if i * i > N: break j = N // i if N % i == 0: ans_set.add(str(i) + str(j)) ans_set.add(str(j) + str(i)) print(len(ans_set)) if __name__ == '__main__': main()