#include #include #include #include #include #include using namespace std; int main() { string s; cin>>s; int q; cin>>q; while(q--){ int zx[26]={0}; int r,l; cin>>l>>r; for(int i=l-1;i0&&zx[i]%2==0){a++;} else if(zx[i]>1&&zx[i]%2==1){a++;c++;} else if(zx[i]==1){c++;} } // cout<