#include <bits/stdc++.h>
using namespace std;
int t[111111], x[111111], y[111111], tr, ans, sum, yr, ur, wr;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> t[i] >> x[i] >> y[i];
    if (t[i] == 1) {
      int q = x[i] + y[i];
      ans += q;
      tr += x[i];
      yr += y[i];
    }
    if (t[i] == 2) {
      int w = x[i] + y[i];
      sum += w;
      wr += x[i];
      ur += y[i];
    }
  }
  if (tr >= yr) {
    cout << "LIVE"
         << "\n";
  }
  if (tr < yr) {
    cout << "DEAD"
         << "\n";
  }
  if (wr >= ur) {
    cout << "LIVE"
         << "\n";
  }
  if (wr < ur) {
    cout << "DEAD"
         << "\n";
  }
}
