#include #include #include #include using namespace std; using ll = long long; using P = pair; int main(void){ int n; cin >> n; vector a(n), b(n-1); for(auto&x:a) cin >> x; for(auto&x:b) cin >> x; sort(begin(a), end(a)); sort(begin(b), end(b)); set ans; ll mi=0, now=0; for(int i=0; i=0; i--){ now-=abs(a[i]-b[i]); now+=abs(a[i+1]-b[i]); if(mi==now) ans.insert(a[i]); else if(mi>now){ mi=now; ans.clear(); ans.insert(a[i]); } } cout << ans.size() << endl; for(auto p:ans) cout << p << ' '; cout << endl; return 0; }