#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> a >> b >> x >> n; if(x%2==0){ cout << 0 << " " << n/2 << endl; } else{ cout << n/2 << " " << 0 << endl; } }