#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum1 = 0, sum2 = 0, n, t1, t2, t3;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t1 >> t2 >> t3;
    if (t1 == 1) {
      sum1 += t2 - t3;
    } else {
      sum2 += t2 - t3;
    }
  }
  if (sum1 >= 0) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (sum2 >= 0) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
}
