#include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a,b,c,d; cin >> a >> b >> c >> d; ll p1=0,p2=0; if(c%2==0){ p2=d/2; }else{ p1=d/2; } cout << p1 << " " << p2 << endl; }