#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n >> b;
  int o = 0, s = 0;
  for (int i = 0; i < n; i++) {
    int a, b, c;
    cin >> a >> b >> c;
    o += a + b;
    s += c;
  }
  if (o < s) {
    cout << "Alice" << endl << "Bob";
  } else {
    cout << "Bob" << endl << "Alice";
  }
}
