#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int64_t a, b, x, N; cin >> a >> b >> x >> N; if (x % 2 == 0) { cout << 0 << ' ' << N / 2 << '\n'; } else { cout << N / 2 << ' ' << 0 << '\n'; } return 0; }