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