#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; int main() { int n[10]; for (int i = 0; i < 9; ++i) { cin >> n[i]; if (n[i] != i + 1) { cout << i + 1 << endl; return 0; } } }