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