#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, xi, yi, ti;
  bool a = 0, b = 0;
  cin >> n;
  vector<pair<int, int> > resa;
  vector<pair<int, int> > resb;
  for (int i = 0; i < n; i++) {
    cin >> ti >> xi >> yi;
    if (ti == 1) {
      resa.push_back(make_pair(xi, yi));
    } else {
      resb.push_back(make_pair(xi, yi));
    }
  }
  int x1 = 0, x2 = 0;
  int suma = 0, sumb = 0;
  for (int i = 0; i < resa.size(); i++) {
    suma += resa[i].first;
    suma += resa[i].second;
    x1 += resa[i].first;
    ;
  }
  if (x1 >= suma / 2) {
    a = 1;
  }
  for (int i = 0; i < resb.size(); i++) {
    sumb += resb[i].first;
    sumb += resb[i].second;
    x2 += resb[i].first;
  }
  if (x2 >= sumb / 2) {
    b = 1;
  }
  if (a) {
    cout << "LIVE" << endl;
  } else if (!a) {
    cout << "DEAD" << endl;
  }
  if (b) {
    cout << "LIVE" << endl;
  } else if (!b) {
    cout << "DEAD" << endl;
  }
  return 0;
}
