n=int(input()) j=2 s=1 while j*j<=n: if n%j==0: c=0 while n%j==0: n//=j c+=1 s*=((j**(c+1))-1)//(j-1) j+=1 if n>1: s*=(n+1) print(c)