#include using namespace std; int main() { int i = 1, j; while (i <= 10) { cin >> j; if (i != j) { cout << i << endl; break; } i++; } return 0; }