#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y, x_a = 0, y_a = 0, x_b = 0, y_b = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> x >> y;
    if (t == 1)
      x_a += x, y_a += y + x;
    else
      x_b += x, y_b += y + x;
  }
  if (x_a >= y_a / 2)
    cout << "LIVE";
  else
    cout << "DEAD";
  cout << endl;
  if (x_b >= y_b / 2)
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
