#include "bits/stdc++.h" #define rep(i,n) for(int i=0;i> a >> b >> x >> N; if (x % 2) cout << N / 2 << " 0\n"; else cout << "0 " << N / 2 << endl; }