#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int t, x, y, ax = 0, atot = 0, bx = 0, btot = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1) {
      ax = ax + x;
      atot = atot + x + y;
    } else if (t == 2) {
      bx = bx + x;
      btot = btot + x + y;
    }
  }
  if (ax >= (atot / 2)) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  if (bx >= (btot / 2)) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  return 0;
}
