#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[1001][4], i, j, c = 0, b = 0, x = 0, y = 0, n;
  cin >> n;
  for (j = 0; j < n; j++) {
    for (i = 0; i < 3; i++) {
      cin >> a[j][i];
    }
  }
  for (j = 0; j < n; j++) {
    if (a[j][0] == 1) {
      c += a[j][1];
      x++;
    }
    if (a[j][0] == 2) {
      b += a[j][1];
      y++;
    }
  }
  if (c >= ((x * 10) / 2))
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (b >= ((y * 10) / 2))
    cout << "LIVE" << endl;
  else
    cout << "DEAD";
}
