import math k = int(input()) ans = 0 for n in range(1,50): ans += math.sin(k*n) / (n**n) print (ans)