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