from math import sin,pi k=int(input()) x=0 for n in range(1,20): x+=sin(k*n)/(n**n) print(x)