#include <bits/stdc++.h>
using namespace std;
int main() {
  long long sum = 0;
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= 3 * n; i++) {
    int x;
    cin >> x;
    sum += x;
  }
  if (sum % 2 == 0)
    cout << "Alice\nBob";
  else
    cout << "Bob\nAlice";
  return 0;
}
