#include using namespace std; int main(){ int n;cin >> n; map mp; vector a(n),b(n); for(int i=0;i> a[i] >> b[i]; mp[a[i]]=true; } for(int i=0;i