import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
int s, a;
double h, dk;
Scanner in
= new Scanner
(System.
in); s = in.nextInt();
a = in.nextInt();
dk
= Math.
sqrt(a
*a
+ 8*s
); h = (-a + dk) / 2;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludCBzLCBhOwoJCWRvdWJsZSBoLCBkazsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlzID0gaW4ubmV4dEludCgpOwoJCWEgPSBpbi5uZXh0SW50KCk7CgkJZGsgPSBNYXRoLnNxcnQoYSphICsgOCpzKTsKCQloID0gKC1hICsgZGspIC8gMjsKCQlTeXN0ZW0ub3V0LnByaW50ZigiJS4yZiIsaCk7Cgl9Cn0=