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