#include <bits/stdc++.h>
using namespace std;
int a, b, a1, b1, n, i, t, x, y;
int main() {
  cin >> n;
  while (i < n) {
    cin >> t >> x >> y;
    if (t == 1) {
      {
        a += x;
        a1 += y;
      }
    } else {
      b += x;
      b1 += y;
    }
    i++;
  }
  if (a >= a1) {
    cout << "LIVE" << endl;
  } else
    cout << "DEAD" << endl;
  if (b >= b1) {
    cout << "LIVE" << endl;
  } else
    cout << "DEAD" << endl;
}
