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