#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(false); uint a, b, x, n; cin >> a >> b >> x >> n; if(x & 1){ cout << 0 << " " << n / 2 << endl; }else{ cout << n / 2 << " " << 0 << endl; } }