/* -*- coding: utf-8 -*- * * 2103.cc: No.2103 ツア1s Game - yukicoder */ #include #include using namespace std; /* subroutines */ bool check(int x, int y, int k, int p) { int n = x + y - k; if (n & 1) { bool f1 = (x > 0 && check(x - 1, y, k, -p)) || (y > 0 && check(x, y - 1, k, -p)); return ! f1; } int h = n / 2; if (y <= h) return p > 0; if (x <= h) return ((y & 1) == (p > 0 ? 0 : 1)); return false; } /* main */ int main() { int x, y, k, p; scanf("%d%d%d%d", &x, &y, &k, &p); bool f0 = check(x, y, k, p); if (f0) puts("Alice"); else puts("Bob"); return 0; }