k = int(input()) print(sum(1/i for i in range(1,k+1))/k if k !=0 else 1.6449340668482264364724151666460251892189499012067984377355582293)