import sys from math import pi def I(): return int(sys.stdin.readline().rstrip()) k = I() if k == 0: print((pi**2)/6) else: print(sum(1/i for i in range(1,k+1))/k)