from math import sin
k=int(input())
s=0
for i in range(1,300):
  try:
    s+=sin(k*i)/(i**i)
  except:
    pass
print(s)