#include <bits/stdc++.h>
int main(void) {
  int A;
  int IDENTIFIER;
  int RECEIVED;
  int LOST;
  int TOTAL;
  int PINGA = 0;
  int PINGB = 0;
  scanf("%d", &TOTAL);
  for (A = 0; A < TOTAL; A++) {
    scanf("%d %d %d", &IDENTIFIER, &RECEIVED, &LOST);
    if (IDENTIFIER == 1) {
      PINGA += RECEIVED - LOST;
    } else {
      PINGB += RECEIVED - LOST;
    }
  }
  if (PINGA >= 0) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
  if (PINGB >= 0) {
    printf("LIVE\n");
  } else {
    printf("DEAD\n");
  }
}
