import itertools def fint(number): lst = [1] while True: if number % 2 == 0: lst.append(2) number //= 2 else: break num = 3 while True: #print num if number ** 0.5 < num: lst.append(number) break if number % num == 0: lst.append(num) number //= num if number == 1: break else: num += 2 return lst a = int(input().strip()) lst = fint(a) if len(lst) <= 2: print(1) exit(0) lst2 = [] for i in range(2, len(lst)): for j in itertools.combinations(lst, r=i): tmp = eval('*'.join([str(k) for k in j])) lst2.append([tmp, a // tmp]) lst2.append([a // tmp, tmp]) print(len(set([''.join([str(j) for j in i]) for i in lst2])))