import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int N = sc.nextInt(); int M = sc.nextInt(); int A[] = new int[N]; int B[] = new int[M]; int mrflag = 0; int maflag = 0; for(int i=0;i