from math import sin k = int(input()) ans = 0.0 for i in range(1, 21): ans += sin(k * i) / i**i print(ans)