#include <bits/stdc++.h>
using namespace std;
int main() {
  int i = 0, j = 0, num = 0, r_b = 0, r_a = 0, index_a = 0, index_b = 0,
      total_a = 0, total_b = 0;
  int** data = 0;
  cin >> num;
  data = new int*[num];
  for (i = 0; i < num; i++) {
    data[i] = new int[3];
  }
  for (i = 0; i < num; i++) {
    for (j = 0; j < 3; j++) {
      cin >> data[i][j];
    }
    if (data[i][0] == 1) {
      r_a += data[i][1];
      index_a++;
    } else if (data[i][0] == 2) {
      r_b += data[i][1];
      index_b++;
    }
  }
  total_a = index_a * 10;
  total_b = index_b * 10;
  if (r_a >= total_a / 2) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (r_b >= total_b / 2) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  delete data[0];
  delete data[1];
  delete data[2];
  delete[] data;
  return 0;
}
