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