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