#pragma GCC optimize("O3") #pragma GCC target("avx") #include #define rep(i ,n) for(int i=0;i<(int)(n);++i) #define repr(i ,n) for(int i=n;i>(int)(n);--i) #define rep1(i ,n) for(int i=1;i<=(int)(n);++i) #define ALL(a) a.begin(), a.end() #define SORT(a) sort(ALL(a)) #define bit_check(bit, i) ((bit>>(i)) & 1) #define PRINT(x) printf("%d\n",(x)); using namespace std; typedef long long int int64; typedef unsigned long long uint64; template using V = vector; using I = int; using VI = V; const int INF = 2e9; const int64 MOD = 1e9 + 7; template inline bool chmin(T& a, T b){if(a>b){a=b; return true;} return false;} template inline bool chmax(T& a, T b){if(a> a >> b >> x0 >> n; int64 t_[2], a_[2]; if(x0 % 2 == 0){ a_[0] = n/2+1; a_[1] = n/2; t_[0] = n; t_[1] = 0; } else { a_[0] = n/2+1; a_[1] = n/2; t_[0] = n; t_[1] = 0; } cout << min(t_[0] , t_[1]) << " " << min(a_[0] , a_[1]) << endl; }