k = int(input()) S = 0 for i in range(k, 0, -1): S += 1 / i print(S / k)