#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
  int n;
  cin >> n;
  int s;
  for (int i = 0; i < n; i++) {
    cin >> s;
    int x, y;
    cin >> x >> y;
    if (s == 1) {
      x1 += x;
      y1 += y;
    } else {
      x2 += x;
      y2 += y;
    }
  }
  if (x1 >= y1)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (x2 >= y2)
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
