while True:n=input();print "%d: %d"%(n,sum((i for i in xrange(1,n/2+1)if n%i==0))+n)