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