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