Meniu

#176 picioare1

#include <iostream>

using namespace std;

int main()
{ int G,O,C,P;
    cin>>C>>P;
    O=(P-2*C)/2;
    G=C-O;
    cout<<G<<" "<<O;

    return 0;
}