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