#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int an = 0, bn = 0, at = 0, bt = 0;
  while (n--) {
    int t, x, y;
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1) {
      an += 10;
      at += x;
    } else {
      bn += 10;
      bt += x;
    }
  }
  if (at >= (an / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (bt >= (bn / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  return 0;
}
