#include <bits/stdc++.h>
int main(void) {
  int n, ar[3], i, j, ax = 0, ay = 0, bx = 0, by = 0;
  scanf("%d", &n);
  for (i = 0; i < n; ++i) {
    for (j = 0; j < 3; ++j) scanf("%d", ar + j);
    if (*(ar + 0) == 1) {
      ax += *(ar + 1);
      ay += *(ar + 2);
    } else {
      bx += *(ar + 1);
      by += *(ar + 2);
    }
  }
  if (ax >= ay)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (bx >= by)
    printf("LIVE");
  else
    printf("DEAD");
  return 0;
}
