#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, a = 0, b = 0;
  cin >> n;
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < n; i++) {
    int t, x, y;
    cin >> t >> x >> y;
    if (t == 1) {
      cnt1++;
      a += x;
    } else {
      cnt2++;
      b += x;
    }
  }
  if (a >= cnt1 * 5)
    cout << "LIVE";
  else
    cout << "DEAD";
  cout << '\n';
  if (b >= cnt2 * 5)
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
