#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
int main() {
  int n;
  scanf("%d", &n);
  vector<int> x1(1, 0), x2(1, 0), sum1(1, 0), sum2(1, 0);
  while (n--) {
    int t, x, y;
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1) {
      x1[0] += x;
      sum1[0] += x + y;
    } else {
      x2[0] += x;
      sum2[0] += x + y;
    }
  }
  if (x1[0] >= sum1[0] / 2)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (x2[0] >= sum2[0] / 2)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  return 0;
}
