import java.util.Scanner; public class Yuki92{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n,k,m,res = 0,count = 0; boolean flag=false; n = sc.nextInt(); m = sc.nextInt(); k = sc.nextInt(); int[] a = new int[m]; int[] b = new int[m]; int[] c = new int[m]; int[] d = new int[k]; for(int i = 0;i