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