#include <bits/stdc++.h>
using namespace std;
int l, n;
int temp[2][2];
int s[2][2];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> l;
    cin >> temp[l - 1][0] >> temp[l - 1][1];
    s[l - 1][0] += temp[l - 1][0];
    s[l - 1][1] += temp[l - 1][1];
  }
  if (s[0][0] >= s[0][1])
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (s[1][0] >= s[1][1])
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
