#include int main(){ int N,M; scanf("%d %d",&N,&M); int count[501]={0}; for(int i=0;i