#include using namespace std; int main(){ int N,M; cin>>N>>M; vector A(N); for(int i=0; i>A[i]; } vector>>> bomb(M); for(int i=0; i>C>>L; bomb[i].first=C; for(int j=0; j>a>>b; bomb[i].second.push_back(make_pair(a,b)); } } int x=-1,y=-1; for(int i=0; i> ans; for(int i=0; i i:ans){ cout<