# coding: utf-8 # Your code here! N=int(input()) A=[i**N for i in range(1,11)] ans=0 for a in A: ans+=1/a print(ans)