#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <climits>
#include <map>
#include <queue>

using namespace std;

using int64 = long long;

int main() {
    int64 a,b,x0,n;
    cin >> a >> b >> x0 >> n;
    if (x0%2) {
        cout << n/2 << " " << 0 << endl;
    } else {
        cout << 0 << " " << n/2 << endl;
    }
}