#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  int x[3], y[3];
  x[1] = 0;
  y[1] = 0;
  x[2] = 0;
  y[2] = 0;
  cin >> n;
  int t, x1, y1;
  while (n--) {
    cin >> t >> x1 >> y1;
    x[t] += x1;
    y[t] += y1;
  }
  if (x[1] >= y[1])
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (x[2] >= y[2])
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
}
