#include <iostream>
#include <cmath>
using namespace std;
int main() {
float eps = 1e-4;
float a = 1, b = 1+eps, c = eps/2;
float D = b*b - 4*a*c;
float x1 = (-b + sqrt(D))/(2*a); // 解の公式を直接使うバージョン
float x2 = (2*c)/(-b - sqrt(D)); // 分子有理化したバージョン
printf("%e %e", x1, x2);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWZsb2F0IGVwcyA9IDFlLTQ7CglmbG9hdCBhID0gMSwgYiA9IDErZXBzLCBjID0gZXBzLzI7CglmbG9hdCBEID0gYipiIC0gNCphKmM7CgkKCWZsb2F0IHgxID0gKC1iICsgc3FydChEKSkvKDIqYSk7IC8vIOino+OBruWFrOW8j+OCkuebtOaOpeS9v+OBhuODkOODvOOCuOODp+ODswoJZmxvYXQgeDIgPSAoMipjKS8oLWIgLSBzcXJ0KEQpKTsgLy8g5YiG5a2Q5pyJ55CG5YyW44GX44Gf44OQ44O844K444On44OzCgkKCXByaW50ZigiJWUgJWUiLCB4MSwgeDIpOwoJcmV0dXJuIDA7Cn0=