#include int main() { int n,m; while(scanf("%d%d",&n,&m)!=EOF) { int a,b; int i; int f=0; for(i=0;i