# A+2ab+B 0 and 4*A*B < (m**2-A-B)**2: r = m else: l = m ANS.append(r) print (*ANS,sep="\n")