import math
k=int(input())
ans=0
for n in range(1,10):
    ans+=math.sin(k*n)/pow(n,n)
print(ans)