#include using namespace std; using ll = unsigned long long; constexpr ll MOD = 1LL << 32; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll a, b, x0, n; cin >> a >> b >> x0 >> n; if ((x0 & 1) == 0) { cout << n / 2 << " " << 0 << "\n"; } else { cout << 0 << " " << n / 2 << "\n"; } return 0; }