#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int b[n];
  int c[n];
  int ans1 = 0;
  int ans2 = 0;
  int ans3 = 0;
  int ans4 = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i] >> c[i];
    if (a[i] == 1) {
      ans1 += b[i];
      ans2 += c[i];
    } else {
      ans3 += b[i];
      ans4 += c[i];
    }
  }
  if (ans1 >= ans2) {
    cout << "LIVE";
  } else {
    cout << "DEAD";
  }
  cout << endl;
  if (ans3 >= ans4) {
    cout << "LIVE";
  } else {
    cout << "DEAD";
  }
  return 0;
}
