#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, t, x, y, x1 = 0, c1 = 0, x2 = 0, c2 = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> x >> y;
    if (t == 1) {
      c1++;
      x1 += x;
    } else {
      x2 += x;
      c2++;
    }
  }
  if (x1 >= c1 * 5) {
    cout << "LIVE\n";
  } else {
    cout << "DEAD\n";
  }
  if (x2 >= c2 * 5) {
    cout << "LIVE";
  } else {
    cout << "DEAD";
  }
}
