#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ string a; cin>>a; int q; cin>>q; /*int e[size]; int o[size]; for(int i=0;i>s>>en; int oddc=0; int evenc=0,th=0,fr=0; int subsz=en-s; int k[27]={0}; for(int i=s;i<=en;i++){ k[a[i-1]-'a'+1]++; } for(int j=1;j<27;j++){ if(k[j]==2) evenc++; else if(k[j]==1) oddc++; else if(k[j]==3) th++; else if(k[j]==4) fr++; } if(subsz==3){ if(oddc==3) cout<<"3"<