#include using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i>n>>m; map,int>mp; mapmpc; rep(i,n){ int b,c; cin>>b>>c; mp[{b,c}]++; mpc[c]++; } cout<