#include using namespace std; #define ALL(x) x.begin(),x.end() #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b ostream &operator<<(ostream &os,const pair&p){ os< ostream &operator<<(ostream &os,const vector&v){ for(int i=0;i<(int)v.size();i++) os<>n; vector a(n),b(n),d(n); rep(i,n) cin>>a[i]; rep(i,n) cin>>b[i]; rep(i,n) d[i]=a[i]-b[i]; ll ds=0; rep(i,n) ds+=d[i]; if(ds<0 or ds%(n-2)){ cout<<-1< c(n); rep(i,n){ ll t=cs-d[i]; if(t<0 or t%2){ cout<<-1<