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