k=int(input()) print(sum([1/n for n in range(1,k+1)])/k)