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