#include <bits/stdc++.h>
using namespace std;
int main() {
  int casos, arec = 0, atot = 0, brec = 0, btot = 0, dummy;
  cin >> casos;
  for (int i = 0; i < casos; i++) {
    int x, y;
    cin >> x;
    if (x == 1) {
      cin >> y;
      atot += y;
      arec += y;
      cin >> dummy;
      atot += dummy;
    } else {
      cin >> y;
      btot += y;
      brec += y;
      cin >> dummy;
      btot += dummy;
    }
  }
  if (arec >= atot / 2)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (brec >= btot / 2)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
