#include using namespace std; int main(){ double X,Y; cin >> X >> Y; double a = X * (1-Y); double b = X * (1-Y); if( a > b ) swap(a,b); printf("%.10lf %.10lf\n",a,b); }