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