#include using namespace std; int main() { for (int i = 1; i <= 10;) { int b; cin >> b; if (i != b) { cout << i << endl; return 0; } } return 0; }