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