/*made in mrd*/ #include using namespace std; const int N=2e5+10; #define endl '\n' #define int long long #define mem(a,b) memset(a,b,sizeof a) #define fi first #define se second #define lu u<<1 #define ru u<<1|1 #define pb push_back #define bug1(x) cout< #define bug3(x,y,z) cout<ans; priority_queueq,p; signed main() { init(); int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; q.push({a[i],i}); } for(int i=1;i<=n;i++){ cin>>b[i]; p.push({-b[i],i}); } int t=100; while(1) { auto x=q.top(); q.pop(); auto y=p.top(); p.pop(); int x1=x.fi; int y1=-y.fi; //cout<