#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y, arr1[2] = {0, 0}, arr2[2] = {0, 0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> x >> y;
    if (t == 1) {
      arr1[0] += x;
      arr1[1] += y;
    }
    if (t == 2) {
      arr2[0] += x;
      arr2[1] += y;
    }
  }
  if (arr1[0] >= arr1[1]) {
    cout << "LIVE" << endl;
  }
  if (arr1[0] < arr1[1]) {
    cout << "DEAD" << endl;
  }
  if (arr2[0] >= arr2[1]) {
    cout << "LIVE" << endl;
  }
  if (arr2[0] < arr2[1]) {
    cout << "DEAD" << endl;
  }
}
