k = int(input()) print(sum(1/i for i in range(1,k+1))/k)