#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a1 = 0, b1 = 0, a2 = 0, b2 = 0;
  int t[1001], a[1001], b[1001];
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> t[i] >> a[i] >> b[i];
    if (t[i] == 1) {
      a1 += a[i];
      b1 += b[i];
    } else {
      a2 += a[i];
      b2 += b[i];
    }
  }
  if (a1 >= b1)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (a2 >= b2)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
