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