import java.util.*; import java.io.*; // This file is a "Hello, world!" in Java language by OpenJDK for wandbox. class Main { public static void main(String[] args) { new Main().run(); } void run(){ Scanner sc=new Scanner(System.in); HashSet m1=new HashSet<>(); HashSet m2=new HashSet<>(); int X=sc.nextInt(); int N=sc.nextInt(); int M=sc.nextInt(); for(int i=0;i