#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int a, b, c, x1 = 0, x2 = 0, y1 = 0, y2 = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d%d%d", &a, &b, &c);
    if (a == 1) {
      x1 += b;
      x2 += c;
    } else {
      y1 += b;
      y2 += c;
    }
  }
  if (x1 >= x2) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  if (y1 >= y2) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  return 0;
}
