#include #define rep(i,n) for(int i=0;i P; const int INF = 1e9; const int MOD = 1000000007; int main(){ ll a,b,x,n; cin >> a >> b >> x >> n; if(x%2 == 0) cout << n/2 << " " << 0 << endl; else cout << 0 << " " << n/2 << endl; return 0; }