import sys readline=sys.stdin.readline write=sys.stdout.write from math import gcd as GCD import math K=int(readline()) if K==0: ans=math.pi**2/6 else: ans=0 for n in range(1,K+1): ans+=1/n ans/=K print(ans)