#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t[n], x[n], y[n], a, b, c, d;
  for (int i = 0; i < n; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  a = 0;
  b = 0;
  c = 0;
  d = 0;
  for (int i = 0; i < n; i++) {
    if (t[i] == 1) {
      a = a + x[i];
      b = b + y[i];
    } else {
      c = c + x[i];
      d = d + y[i];
    }
  }
  if (a >= b)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (c >= d)
    cout << "LIVE" << endl;
  else
    cout << "DEAD";
}
