#include int B=0; int main(void){ for(int i=1;i<=10;i++){ if(scanf("%d",&B)==EOF||B!=i){ printf("%d\n",i); break; } } return 0; }