m@main=getLine>>=print.round.f.reads>>m f[(a,b)]=(sqrt(4*a^2+3*read b^2)-a)/3