from math import sin K = int(input()) ans = 0 for n in range(1, 100): ans += sin(K*n) / (n ** n) print(ans)