#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, t1, t2, t3, t4, n;
  int a, b, ax, bx;
  a = 0;
  ax = 0;
  b = 0;
  bx = 0;
  scanf("%d", &n);
  for (i = 0; i != n; ++i) {
    scanf("%d%d%d", &j, &k, &t1);
    if (j == 1) {
      ++a;
      ax += k;
    } else {
      ++b;
      bx += k;
    }
  }
  if (ax >= a * 5)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (bx >= b * 5)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
