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