#include <bits/stdc++.h>
using namespace std;
int n, t, x, y, wa, wb, pa;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> t >> x >> y;
    if (t == 1)
      wa += x, pa++;
    else
      wb += x;
  }
  if (wa < (pa * 10 + 1) / 2)
    cout << "DEAD" << endl;
  else
    cout << "LIVE" << endl;
  if (wb < ((n - pa) * 10 + 1) / 2)
    cout << "DEAD";
  else
    cout << "LIVE";
  return 0;
}
