pbinfo | varena | campion | timus | codeforces | atcoder |
#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; }