#include using namespace std; int main(){ int N; long initial; long a,b; long m=INT_MAX; long s=0; cin>>N; for(int i=0;i>a>>b; if(i==0){ initial=(a+b*4); } m=min(m,a+b*4); s+=a+b*4; if((a+b*4)%2!=initial%2){ cout<<(a+b*4)<<" "<