#include<bits/stdc++.h> using namespace std; typedef long long ll; template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } const ll INF=1LL<<60; int main(){ ll a,b,x,n;cin >> a >> b >> x >> n; if(x%2==0){ cout << 0 << " " << n/2 << endl; } else{ cout << n/2 << " " << 0 << endl; } }