#include <iostream> #include <iomanip> using namespace std; int main() { int x, y; cin >> x >> y; int b = (y - x - x) / 2; int a = x - b; cout << a << " " << b; return 0; }
Using your acjudge universal account