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