#include using namespace std; #include using namespace atcoder; using ll = long long; int n; vector a,b; using P = pair; void solve(){ int out = n; for(int i = 0;i mst; for(auto &j:a)mst.emplace(j,0); for(int j = 0;j> n; a = vector(n); b = vector(n); for(auto &i:a)cin >> i; for(auto &i:b)cin >> i; solve(); }