#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <cmath>
using namespace std; 



int main()
{

	int c,s,a,b; cin >> c >> s;
	
	b = 1.0/4* (-sqrt(c*c-8*c-16*s+16)+c+4);
	a = 1.0/4* ( sqrt(c*c-8*c-16*s+16)+c+4);
	
	cout << a << " " << b << endl;

    //system("pause");
    return 0;
}
                                                                                                                               
