#include #include #include using namespace std; int N; int X[3<<17],Y[3<<17]; main() { cin>>N; vector,int> >A(N); for(int i=0;i>X[i]>>Y[i]; A[i].first.first=X[i]; A[i].first.second=Y[i]; A[i].second=i; } sort(A.begin(),A.end()); vectorans; int id=0; while(ans.size()*90