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