#include <bits/stdc++.h>
using namespace std;
void solve(istream &in, ostream &out) {
  int n;
  in >> n;
  int na = 0, nb = 0, a = 0, b = 0;
  for (int i = 0; i < n; ++i) {
    int t, x, y;
    in >> t >> x >> y;
    if (t == 1) {
      a += x;
      na += 10;
    } else {
      b += x;
      nb += 10;
    }
  }
  if (a >= na / 2)
    out << "LIVE" << endl;
  else
    out << "DEAD" << endl;
  if (b >= nb / 2)
    out << "LIVE" << endl;
  else
    out << "DEAD" << endl;
}
int main() {
  solve(cin, cout);
  return 0;
}
