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