import math k=int(input()) goukei=0 for i in range(1,1000000): if i<10: goukei+=math.sin(k*i)/(i**i) print(goukei)