s = int(input()) count = 0 for x in range(1,int(s/2)): if s%x == 0: if int(s/x) == x: count += 1 else: count += 2 print(count)