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