N = int(input()) count = 0 for i in range(2, N//2): q = N/(i) if q.is_integer(): #割り切れるか判定 count += 1 print(count+2)