import math k=int(input()) if k==0: print(0) else: ans=0 for i in range(1,15): ans+=math.sin(k*i)/(i**i) print(ans)