#include #include #include using namespace std; int main() { int a; vector b(11, false); b[0] = true; for (int i = 1; i < 10; i++) { cin >> a; b[a] = true; } for (int i = 1; i < 10; i++) { if (!b[i]) { cout << i << endl; break; } } return 0; }