#include using namespace std; int main() { int N; cin >> N; vector A(N), B(N); for(int i=0; i> A[i] >> B[i]; sort(A.begin(), A.end()); sort(B.begin(), B.end()); int x = A[A.size()/2], y = B[B.size()/2]; int ans = 0; for(int i=0; i