s = int(input()) count = 0 list_ = [] for x in range(1,int(s/2)): if s%x == 0: y = int(s/x) if x not in list_ and x != y: list_.append(y) count += 2 else: count += 1 print(count)