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