k = int(input()) try: l = 1/k except ZeroDivisionError: l = 0 x = 0 for i in range(1,k+1): x = x + 1/i print(l*x)