#include using namespace std; using LL = long long; constexpr LL mod = 998244353; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n, k, t; string s; cin >> n >> k >> t >> s; k -= 1; vector l(n), r(n); for (int i = 0; i < n; i += 1) { if (i and s[i - 1] == s[i]) { l[i] = l[i - 1]; } else { l[i] = i; } } for (int i = n - 1; i >= 0; i -= 1) { if (i + 1 < n and s[i + 1] == s[i]) { r[i] = r[i + 1]; } else { r[i] = i; } } map ans = {{'A', "Alice"}, {'B', "Bob"}}; function f = [&](int k, int t) -> char { if ((k + t <= r[k] or r[k] == n - 1) and (k - t >= l[k] or l[k] == 0)) { return 131 - s[k]; } if (l[k] == r[k]) { if (t % 2 == 0) { return 131 - s[k]; } int l = k ? f(k - 1, t - 1) : 131 - s[k]; int r = k + 1 < n ? f(k + 1, t - 1) : 131 - s[k]; return l == s[k] or r == s[k] ? s[k] : 131 - s[k]; } if ((r[k] - l[k]) % 2 == 0) { if ((k - l[k] + 1) % 2 == t % 2) { return s[k]; } return s[k] ^ 1; } if (l[k] > 0 and k - l[k] < t and (k - l[k] + 1) % 2 == t % 2) { return s[k]; } if (r[k] + 1 < n and r[k] - k < t and (r[k] - k + 1) % 2 == t % 2) { return s[k]; } if (l[k] > 0 and k - l[k] < t) { return f(l[k] - 1, t - (k - l[k] + 1)); } return f(r[k] + 1, t - (r[k] - k + 1)); }; cout << ans[f(k, t)]; }