package yukicoder; import java.util.HashMap; import java.util.Scanner; public class Main{ public static void main(String[] args){ new Main().solve(); } void solve(){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); HashMap map=new HashMap<>(); for(int i=0;i