from math import sin k=int(input()) ANS=0 for i in range(10**2): ANS=ANS+sin(k*i)/(i**i) print(ANS)