import math k=int(input()) if k==0: print(math.pi**2/6) else: print((1/k)*sum(1/i for i in range(1,k+1)))