def d(n):
if n<0:return-d(-n)
for x in range(2,n):
if n%x<1:return n//x*d(x)+x*d(n//x)
return n>1
for i in input().split():
try:print(+d(int(i)))
except:print("Wait, that's not a number...")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).