#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n, t, x, y, a = 0, b = 0, suma = 0, sumb = 0;
  cin >> n;
  while (n--) {
    cin >> t >> x >> y;
    if (t == 1) {
      a++;
      suma += x;
    } else {
      b++;
      sumb += x;
    }
  }
  if (suma >= 5 * a)
    cout << "LIVE";
  else
    cout << "DEAD";
  cout << endl;
  if (sumb >= 5 * b)
    cout << "LIVE";
  else
    cout << "DEAD";
}
