#include using namespace std; using ll=long long; using pii=pair; #define all(a) a.begin(),a.end() #define pb push_back #define sz(a) ((int)a.size()) const int N=305; int n,a[N],b[N]; signed main(){ ios_base::sync_with_stdio(0),cin.tie(0); cin >> n; for(int i=0; i> a[i] >> b[i]; sort(a,a+n),sort(b,b+n); int x=a[(n-1)/2],y=b[(n-1)/2]; int res=0; for(int i=0; i