#include #include #include #include #include #include #include void initialize(char* s) { // This function is called once before all queries. } int 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 a = 0; a < q; a++){ int l; int r; scanf("%i %i", &l, &r); int result = answerQuery(l, r); printf("2\n"); } return 0; }