import java.util.Scanner; public class Answer { public static void main(String str[]) { Scanner sc = new Scanner(System.in); for(int i=1; i<=10; i++) { if(i != Integer.valueOf(sc.next())) { System.out.println(i); return; } } } }