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