#include <bits/stdc++.h>
using namespace std;
int main() {
  int no_ping;
  cin >> no_ping;
  long s_a = 0, s_b = 0, f_a = 0, f_b = 0;
  while (no_ping--) {
    int t;
    cin >> t;
    int l, r;
    if (t == 1) {
      cin >> l >> r;
      s_a += l;
      f_a += r;
    } else {
      cin >> l >> r;
      s_b += l;
      f_b += r;
    }
  }
  if (s_a >= f_a)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (s_b >= f_b)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
}
