#include using namespace std; int main(){ int64_t A, B, X0, N; cin >> A >> B >> X0 >> N; if(X0%2){ cout << 0 << " " << N/2 << endl; }else{ cout << N/2 << " " << 0 << endl; } return 0; }