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