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