#include <iostream>
#include <cmath>
#include <ios>
using namespace std;

int main(){

	int c, s, uk;


	cin>>c;
	cin>>s;

	uk = c+s;

	double kor;

	double x = (c*c)/4 + 2*c - 4*uk + 4;
	kor =sqrt( x  );
	
	double rez1 = ( (c/(-2)) - 2 + kor ) / (-2);
	double rez2 = ( (c/(-2)) - 2 - kor ) / (-2);


	cout<<endl;

	if(rez1>=rez2){cout<<rez1<<" "<<rez2;}
	else cout<<rez2<<" "<<rez1;

	cout<<endl;

return 0;
}