#include <bits/stdc++.h>
using namespace std;
int N, serverAx, serverAy, tipo;
int x, y, serverBx, serverBy;
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d%d%d", &tipo, &x, &y);
    if (tipo == 1) {
      serverAx += x;
      serverAy += y;
    } else {
      serverBx += x;
      serverBy += y;
    }
  }
  if (serverAx >= ((serverAx + serverAy) / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (serverBx >= ((serverBy + serverBy) / 2))
    printf("LIVE\n");
  else
    printf("DEAD\n");
  return 0;
}
