from math import sqrt def f(n): if n == 1: return 1 else: s = set() t = round(sqrt(n)) + 1 for i in range(1, t): q, r = divmod(n, i) if r == 0: s.add("{}{}".format(i, q)) if q != i: s.add("{}{}".format(q, i)) return len(s) n = int(input()) print(f(n))