#include int main () { int a; for (int i = 1; i < 10; i++) { scanf("%d", &a); if (a != i) { printf("%d\n", i); return 0; } } puts("10"); }