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