#include using namespace std; int main() { int t,i,flag; cin>>t; int A[t][2]; for(i=0;i>A[i][0]>>A[i][1]; for(i=0;i