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