a,b=map(int,input().split()) s=b*a*(a+1)//2 print(s/(b*(a+1)))