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