#yuki1272 import math k=int(input()) res=0 for n in range(1,10): res+=math.sin(k*n)/pow(n,n) print(res)