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