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