#include <bits/stdc++.h>
using namespace std;
const int N = 2e5;
const int M = 32;
int n, q, res;
char st[N];
int pre[N][M], nxt[N][M], prf[N][M], nxf[N][M];
int num[M], val[N], o[M];
int main() {
  scanf("%s", st + 1);
  n = strlen(st + 1);
  for (int j = 0; j < 26; ++j) pre[1][j] = 0;
  for (int i = 2; i <= n + 1; ++i) {
    for (int j = 0; j < 26; ++j) pre[i][j] = pre[i - 1][j];
    pre[i][st[i - 1] - 'a'] = i - 1;
  }
  for (int j = 0; j < 26; ++j) nxt[n][j] = n + 1;
  for (int i = n - 1; ~i; --i) {
    for (int j = 0; j < 26; ++j) nxt[i][j] = nxt[i + 1][j];
    nxt[i][st[i + 1] - 'a'] = i + 1;
  }
  for (int i = 2; i <= n + 1; ++i) {
    for (int j = 0; j < 26; ++j) o[j] = j;
    sort(o, o + 26, [=](int a, int b) { return pre[i][a] > pre[i][b]; });
    for (int j = 0; j < 26; ++j) {
      for (int k = 0; k < 32; ++k) num[k] = 0;
      for (int k = 0; k < j; ++k)
        if (pre[i][o[k]])
          num[prf[i][o[k]] ^ val[pre[i][o[k]]] ^ val[nxt[pre[i][o[j]]][o[k]]] ^
              prf[nxt[pre[i][o[j]]][o[k]]][o[j]]] = 1;
      int p = 0;
      while (num[p]) p++;
      prf[i][o[j]] = p;
    }
    val[i] = val[pre[i][st[i] - 'a']] ^ prf[i][st[i] - 'a'];
  }
  for (int i = n - 1; ~i; --i) {
    for (int j = 0; j < 26; ++j) o[j] = j;
    sort(o, o + 26, [=](int a, int b) { return nxt[i][a] < nxt[i][b]; });
    for (int j = 0; j < 26; ++j) {
      for (int k = 0; k < 32; ++k) num[k] = 0;
      for (int k = 0; k < j; ++k)
        if (nxt[i][o[k]] != n + 1)
          num[prf[nxt[i][o[j]]][o[k]] ^ val[pre[nxt[i][o[j]]][o[k]]] ^
              val[nxt[i][o[k]]] ^ nxf[i][o[k]]] = 1;
      int p = 0;
      while (num[p]) p++;
      nxf[i][o[j]] = p;
    }
  }
  scanf("%d", &q);
  while (q--) {
    int l, r;
    scanf("%d%d", &l, &r);
    for (int j = 0; j < 32; ++j) num[j] = 0;
    for (int j = 0; j < 26; ++j)
      if (l <= pre[r + 1][j])
        num[prf[r + 1][j] ^ val[pre[r + 1][j]] ^ val[nxt[l - 1][j]] ^
            nxf[l - 1][j]] = 1;
    int p = 0;
    while (num[p]) p++;
    if (p)
      puts("Alice");
    else
      puts("Bob");
  }
}
