from math import sin K=int(input()) P=0 for i in range(1,20): P+=sin(K*i)/pow(i,i) print(P)