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