#include <bits/stdc++.h>
using namespace std;
int n, aa = 0, bb = 0, ta = 0, ya = 0, tb = 0, yb = 0;
int main() {
  cin >> n;
  int a[n][3];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> a[i][j];
      if (j == 0 && a[i][j] == 1) {
        aa += 10;
      }
      if (j == 0 && a[i][j] == 2) bb += 10;
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 3; j++) {
      if (j == 0 && a[i][0] == 1) {
        ta += a[i][1];
        ya += a[i][2];
      } else if (j == 0 && a[i][0] == 2) {
        tb += a[i][1];
        yb += a[i][2];
      };
    }
  }
  if (ta >= ya)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (tb >= yb)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
