#include #include using namespace std; int main(){ int n,m,a,b,cnt; while(cin>>n>>m){ cnt=0; for(int i=0;i