#include <bits/stdc++.h>
using namespace std;
int n, f, q, w, e, s;
int main() < % {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> f;
  s = f;
  for (int i = 0; i < n; i++) {
    cin >> q >> w >> e;
    if (i == 0) {
      s += q;
      s += w;
      s += e;
    }
  }
  if (s % 2 == 0) {
    cout << "Alice" << endl << "Bob";
  } else
    cout << "Bob" << endl << "Alice";
}
% >
