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