#include <bits/stdc++.h>
int main() {
  int t, x, y;
  int n, a[5] = {0}, b[5] = {0};
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &t);
    if (t == 1) {
      scanf("%d%d", &x, &y);
      a[0] += x;
      a[1] += y;
    } else if (t == 2) {
      scanf("%d%d", &x, &y);
      b[0] += x;
      b[1] += y;
    }
  }
  int q, w;
  q = a[0] + a[1];
  w = b[0] + b[1];
  if (a[0] * 2 >= q)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (b[0] * 2 >= w)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  return 0;
}
