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