#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt1 = 0, cnt2 = 0, t1 = 0, t2 = 0;
  scanf("%d", &n);
  int a, b, c;
  for (int i = 1; i <= n; i++) {
    scanf("%d%d%d", &a, &b, &c);
    if (a == 1) {
      cnt1++;
      t1 += b;
    } else {
      cnt2++;
      t2 += b;
    }
  }
  if (t1 >= (cnt1 * 5)) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  if (t2 >= (cnt2 * 5)) {
    printf("LIVE\n");
  } else
    printf("DEAD\n");
  return 0;
}
