#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int answer = -1;
  long sum_x[2] = {0};
  long sum_y[2] = {0};
  int nr[2] = {0};
  int i;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    int t, x, y;
    scanf("%d %d %d\n", &t, &x, &y);
    if (t == 1) {
      sum_x[0] += x;
      sum_y[0] += y;
      nr[0]++;
    } else {
      sum_x[1] += x;
      sum_y[1] += y;
      nr[1]++;
    }
  }
  for (i = 0; i < 2; i++) {
    if (sum_x[i] / nr[i] >= 5)
      printf("LIVE\n");
    else
      printf("DEAD\n");
  }
}
