#include using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int main() { double X, Y; cin >> X >> Y; cout << fixed << setprecision(10); cout << (X * (1. - Y)) << " " << (X * (1. - Y)) << endl; return 0; }