#include <bits/stdc++.h>
using namespace std;
int main() {
  int command, y1 = 0, y2 = 0, x1 = 0, x2 = 0, t, x, y;
  cin >> command;
  for (int i = 0; i < command; i++) {
    cin >> t >> x >> y;
    if (t == 1) {
      y1 += y;
      x1 += x;
    }
    if (t == 2) {
      y2 += y;
      x2 += x;
    }
  }
  if (x1 >= y1)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (x2 >= y2)
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
