#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, serverA, serverB, sumA = 0, sumB = 0;
  int temp, leftA, leftB, totalA = 0, totalB = 0;
  cin >> n;
  while (n--) {
    cin >> temp;
    if (temp == 1) {
      cin >> serverA;
      cin >> leftA;
      sumA += serverA;
      totalA += 10;
    } else {
      cin >> serverB;
      cin >> leftB;
      sumB += serverB;
      totalB += 10;
    }
  }
  if (sumA >= (totalA / 2)) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (sumB >= (totalB / 2)) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  return 0;
}
