#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t, x, y;
  int a = 0, b = 0;
  int al = 0, bl = 0;
  while (n--) {
    cin >> t >> x >> y;
    if (t == 1) {
      a += 10;
      al += x;
    } else {
      b += 10;
      bl += x;
    }
  }
  if (al >= a / 2)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (bl >= b / 2)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
