#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = 0, b = 0, a1 = 0, b1 = 0;
  int matrix[1000][3];
  for (int i = 0; i < n; i++) {
    cin >> matrix[i][0] >> matrix[i][1] >> matrix[i][2];
    if (matrix[i][0] == 1) {
      a += 10;
    } else {
      b += 10;
    }
  }
  a /= 2;
  b /= 2;
  for (int i = 0; i < n; i++) {
    if (matrix[i][0] == 1) {
      a1 += matrix[i][1];
    } else {
      b1 += matrix[i][1];
    }
  }
  if (a1 >= a) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  if (b1 >= b) {
    cout << "LIVE";
  } else {
    cout << "DEAD";
  }
  return 0;
}
