# import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') k = int(input()) S = 0 for i in range(1,k+1): S += 1/i print(S/k)