#include <bits/stdc++.h>
using namespace std;
int main() {
  int sumx1 = 0, sumy1 = 0;
  int sumx2 = 0, sumy2 = 0;
  int t, x, y;
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1) {
      sumx1 += x;
      sumy1 += y;
    } else {
      sumx2 += x;
      sumy2 += y;
    }
  }
  if (sumx1 >= ((sumx1 + sumy1) / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (sumx2 >= ((sumx2 + sumy2) / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  return 0;
}
