#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y, a = 0, b = 0, c1 = 0, c2 = 0;
  ;
  cin >> n;
  while (n > 0) {
    cin >> t;
    cin >> x;
    cin >> y;
    if (t == 1) {
      a += x;
      c1++;
    } else {
      b += x;
      c2++;
    }
    n--;
  }
  if ((a / c1) >= 5)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if ((b / c2) >= 5)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
