#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y, i;
  int sum_ax = 0, sum_ay = 0, sum_bx = 0, sum_by = 0;
  while (cin >> n) {
    for (i = 0; i < n; i++) {
      cin >> t >> x >> y;
      if (t == 1) {
        sum_ax += x;
        sum_ay += y;
      } else {
        sum_bx += x;
        sum_by += y;
      }
    }
    if (sum_ax >= sum_ay)
      cout << "LIVE" << endl;
    else
      cout << "DEAD" << endl;
    if (sum_bx >= sum_by)
      cout << "LIVE" << endl;
    else
      cout << "DEAD" << endl;
  }
  return 0;
}
