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