import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] arr = new int[30];
for (int i = 0; i < arr.length - 2; i++) {
int student = Integer.parseInt(br.readLine());
arr[(student - 1)] = 1;
}
for (int i = 0; i < arr.length; i++) {
if (arr[i] != 1) {
System.out.println(i + 1);
}
}
}
}