#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y;
  int ar = 0;
  int al = 0;
  int br = 0;
  int bl = 0;
  cin >> n;
  for (int i = 0; n > i; i++) {
    cin >> t;
    cin >> x;
    cin >> y;
    if (t == 1) {
      ar += x;
      al += y;
    } else {
      br += x;
      bl += y;
    }
  }
  if (ar >= al) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (br >= bl) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  return 0;
}
