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