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