import java.util.*;
import java.io.*;

public class missing{
	public static void main (String[] args){
		File infile = new File("data3.txt");
		File outfile = new File("out3.txt");
		Scanner read;
		PrintStream ps;
		try{
			read = new Scanner(infile);
			ps = new PrintStream(new FileOutputStream(outfile));
			int numints;
			boolean[][] stolen=new boolean[5][];
			for (int i=0; i<5; i++){
				numints = read.nextInt();
				stolen[i] = new boolean[numints+1];
				for (int a=0; a<=numints; a++){
					stolen[i][a]=true;
				}
				for (int b=0;b<numints;b++){
					stolen[i][read.nextInt()-1]=false;
				}
				for (int c=0; c<=numints; c++){
					if (stolen[i][c]){
						ps.println(c+1);
					}
				}
			}
			ps.close();
			read.close();
		} catch (FileNotFoundException e){
			System.err.print("This operation could not be completed.");
		}
	}
}
