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