#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); // x + y = A // M-x + y = B cout << "0 0" << endl; cout.flush(); ll A; cin >> A; cout << "1000000000 0" << endl; cout.flush(); ll B; cin >> B; cout << (A - B + 1000000000) / 2 << " " << (A + B - 1000000000) / 2 << endl; cout.flush(); }