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