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