import java.util.Scanner; class no26{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int n,m,p,q,i; n=stdIn.nextInt(); m=stdIn.nextInt(); for(i=0;i