#include #include using namespace std; int main(){ int ans; vector a(9); for (int i=1;i<10;i++){ cin>>a[i]; if (a[i]!=i)ans=i; } cout<