N = int(input()) ans = 0.0 for i in range(10000): ans += (1.0 / (i + 1)) ** N print(ans)