import sys from math import sin def I(): return int(sys.stdin.readline().rstrip()) k = I() print(sum(sin(k*i)/(i**i)) for i in range(1,12))