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