#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool aLive;
  bool bLive;
  int aReceive = 0, bReceive = 0;
  int aCount = 0, bCount = 0;
  for (int i = 0; i < n; i++) {
    int server, hit, miss;
    cin >> server >> hit >> miss;
    if (server == 1) {
      aCount++;
      aReceive += hit;
    } else {
      bCount++;
      bReceive += hit;
    }
  }
  if (aReceive >= aCount * 10 / 2) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (bReceive >= bCount * 10 / 2) {
    cout << "LIVE";
  } else {
    cout << "DEAD";
  }
  return 0;
}
