from math import sin, cos k = int(input()) if k == 0: print(0) else: S = 0 for i in range(100, 0, -1): S += sin(i*k) / pow(i, i) print(S)