#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int a,b; cout << 0 << " " << 0 << endl; cin >> a; if(a==0) return 0; cout << a << " " << 0 << endl; cin >> b; if(b==0) return 0; int x = 2*a - b; x/=2; int y = a - x; cout << x << " " << y << endl; return 0; }