import numpy as np k = int(input()) ans = 0 for n in range(1,11): ans += np.sin(k*n)/(n**n) print(ans)