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