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