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