#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, n, x, y, t, x1 = 0, x2 = 0, a = 0, b = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t >> x >> y;
    if (t == 1) {
      x1++;
      a += x;
    } else {
      x2++;
      b += x;
    }
  }
  if ((x1 * 5) > a) {
    cout << "DEAD" << endl;
  } else
    cout << "LIVE" << endl;
  if ((x2 * 5) > b) {
    cout << "DEAD" << endl;
  } else
    cout << "LIVE" << endl;
  return 0;
}
