import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); boolean[] f = new boolean[10]; for (int i = 0; i != 9; i++) { f[sc.nextInt() - 1] = true; } for (int i = 0; i != 9; i++) { if (!f[i]) { System.out.println(i + 1); } } sc.close(); } }