#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ string s; cin>>s; int q; cin>>q; while(q--) { int l=0,r=0; cin>>l>>r; l--; int rr=r-l+1; string news=s.substr(l,rr); //cout<0) { if(count[i]%2==0) two++; else one++; } } cout<