#include int main(void){ int N,M,p,q,i; scanf("%d",&N); scanf("%d",&M); for(i=0;i