import java.util.Scanner; public class No481 { public static void main(String[] args) { Scanner s = new Scanner(System.in); for (int i = 1; i <= 10; i++) { if (i != s.nextInt()) { System.out.println(i); return; } } } }