#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { int a, b, x, n; cin >> a >> b >> x >> n; if (n == 0) { cout << 0 << " " << 0 << endl; return 0; } if (x%2) cout << n/2 << " " << 0 << endl; else cout << 0 << " " << n/2 << endl; }