k = int(input()) S = 0 if k == 0: print((3.14159265358979323846264338**2)/6) else: for i in range(k, 0, -1): S += 1 / i print(S / k)