#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, ca = 0, cb = 0, suma = 0, sumb = 0, t, a, b;
  cin >> q;
  for (int i = 0; i < q; i++) {
    cin >> t >> a >> b;
    if (t == 1)
      suma += a, ca++;
    else
      sumb += a, cb++;
  }
  if (suma >= ((ca * 10) / 2))
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (sumb >= ((cb * 10) / 2))
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
