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