#include <bits/stdc++.h>
int x[2], y[2];
int main() {
  int c;
  scanf("%d", &c);
  while (c--) {
    int t, xx, yy;
    scanf("%d %d %d", &t, &xx, &yy);
    x[t - 1] += xx;
    y[t - 1] += yy;
  }
  for (int i = 0; i < 2; ++i) {
    printf("%s\n", (x[i] >= y[i]) ? "LIVE" : "DEAD");
  }
  return 0;
}
