#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) templatebool chmax(T &a,const U &b){if(a>n; int a,b; ll hoge[n],shake=0; rep(i,n){ cin>>a>>b; chmax(shake,a+4*b); hoge[i]=a+4*b; } rep(i,n-1){ if((hoge[i+1]-hoge[i])%2==1){ cout<<-1<