#include #include #include using namespace std; int main(){ string N; cin>> N; vector v; for(int i=0; iv.size()) break; int c=N[v[i]]-'0', w1=N[v[i+1]]-'0', w2=N[v[i+2]]-'0'; if(c==0||c==w1||c==w2||w1!=w2) continue; if(!(v[i]