import math K=int(input()) if K==0: print(0) exit(0) ans=0 for n in range(1,100): x=math.sin(K*n) y=n**n ans+=x/y print(ans)