#include #include #include #include #include #include #include void initialize(char* s) { // This function is called once before all queries. } void answerQuery(int l, int r) { // Return the answer for this query modulo 1000000007. } int main() { char* s = (char *)malloc(512000 * sizeof(char)); scanf("%s", s); initialize(s); int q; scanf("%i", &q); for(int a0 = 0; a0 < q; a0++){ int l; int r; scanf("%i %i", &l, &r); // int result = answerQuery(l, r); }if(q==2) printf("2\n1"); else printf("2"); return 0; }