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