#include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { ll a, b, x, n; cin >> a >> b >> x >> n; ll r0, r1; if (x & 1) { r0 = n / 2; r1 = 0; } else { r0 = 0; r1 = n / 2; } cout << r0 << ' ' << r1 << endl; return 0; }