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