#include #include using namespace std; int N,A[44],B[44]; main() { cin>>N; for(int i=1;i>A[i]>>B[i]; int X=0; for(int i=1;i