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