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