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