#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t[n], x[n], y[n], p = 0, q = 0, r = 0, s = 0;
  for (int i = 1; i <= n; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  for (int i = 1; i <= n; i++) {
    if (t[i] == 1) {
      p = p + x[i];
      q = q + y[i];
    } else {
      r = r + x[i];
      s = s + y[i];
    }
  }
  if (p >= (p + q) / 2)
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (r >= (r + s) / 2)
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  return 0;
}
