from math import sin def solve(k): ret = 0 for i in range(1, 11): ret += sin(k*i)/(i**i) return ret print(solve(int(input())))