n=int(input());print(sum(1/i**n for i in range(1,99)))