n,k=map(int,input().split()) n+=1 exp=0 for i in range(0,n): exp+=i/(n) print(exp)