#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  int a[2], b[2];
  cin >> k;
  a[0] = 0;
  a[1] = 0;
  b[0] = 0;
  b[1] = 0;
  int tmp;
  for (int i = 0; i < k; i++) {
    cin >> tmp;
    if (tmp == 1) {
      cin >> tmp;
      a[0] += tmp;
      cin >> tmp;
      a[1] += tmp;
    } else {
      cin >> tmp;
      b[0] += tmp;
      cin >> tmp;
      b[1] += tmp;
    }
  }
  if (a[0] >= a[1]) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (b[0] >= b[1])
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
