import math K=int(input()) sm=sum(math.sin(K*n)/n**n for n in range(1,20)) print(sm)