#include <bits/stdc++.h>
using namespace std;
int t, x, y, n, a, b, sumA, sumB;
int main() {
  scanf("%d", &n);
  while (n--) {
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1) {
      sumA += (x + y);
      a += x;
    } else {
      sumB += (x + y);
      b += x;
    }
  }
  puts(sumA / 2 <= a ? "LIVE" : "DEAD");
  puts(sumB / 2 <= b ? "LIVE" : "DEAD");
  return 0;
}
