#include using namespace std; typedef long long ll; typedef pair P; /* 奇数、奇数 ... o,o,o,o, e,e,e,e 偶数、奇数 ... o,e,o,e e,o,e,o 奇数、偶数 ... o,e,o,e 偶数、偶数 ... e,e,e,e */ int main() { cin.tie(0); ios::sync_with_stdio(false); unsigned int a,b,x0,N; cin >> a >> b >> x0 >> N; if(a%2 == b%2)cout << 0 << " " << 0 << endl; else cout << N/2 << " " << N/2 << endl; return 0; }