#include <bits/stdc++.h>
using namespace std;
int n, t, x, y, say1, say10, say2, say20;
int main(int argc, char *argv[]) {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> t >> x >> y;
    if (t == 1) say1++, say10 += x;
    if (t == 2) say2++, say20 += x;
  }
  if (say1 * 10 / 2 <= say10)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (say2 * 10 / 2 <= say20)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return EXIT_SUCCESS;
}
