N = int(input()) ans = 0 for i in range(1, 20): ans += 1/pow(i, N) print(ans)