#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; templateusing V=vector; templateusing VV=V>; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; V A(n),B(n-1); rep(i,n) cin>>A[i]; rep(i,n-1) cin>>B[i]; sort(ALL(A)); sort(ALL(B)); ll ans=0; V ANS; set s; for(int i=1;i