N=int(input()) ans=0 for j in range(1,N+1): for x in range(1,N+1): lf=x*j ri=(x+1)*j ri=min(ri,N+1) if ri-lf<0: break ans+=x*(ri-lf) print(ans)