#include <bits/stdc++.h>
int main() {
  int n, i, brA, brB, serverAR, serverAL, serverBL, serverBR, t, x, y;
  scanf("%d", &n);
  brA = 0;
  brB = 0;
  serverAR = 0;
  serverAL = 0;
  serverBL = 0;
  serverBR = 0;
  for (i = 1; i <= n; i++) {
    scanf("%d %d %d", &t, &x, &y);
    if (t == 1) {
      brA++;
      serverAR += x;
      serverAL += y;
    }
    if (t == 2) {
      brB++;
      serverBR += x;
      serverBL += y;
    }
  }
  if (brA > 0)
    if (serverAR >= serverAL)
      printf("LIVE\n");
    else
      printf("DEAD\n");
  if (brB > 0)
    if (serverBR >= serverBL)
      printf("LIVE\n");
    else
      printf("DEAD\n");
  return 0;
}
