#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int na = 0, nb = 0, pa = 0, pb = 0, ti, x, y;
  for (int i = 0; i < t; i++) {
    cin >> ti >> x >> y;
    if (ti == 1) {
      na++;
      pa += x;
    } else {
      nb++;
      pb += x;
    }
  }
  if (pa >= (na * 5))
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (pb >= (nb * 5))
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  return 0;
}
