#include using namespace std; using ll=long long; int main(){ ll n; cin>>n; bool ans=0; map> v; ll mini=100000000000000; for(int i=0;i>a>>b; v[a].push_back(b); mini=min(mini,a); } ll now=-1; for(int i=mini;i<2*mini;i++){ if(v[i].size()==0){ cout<<"No"<now) cnt=max(cnt,v[i][j]); } if(cnt==-1){ cout<<"No"<