#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  pair<int, int> ans[2] = {};
  for (int i = 0; i < n; i++) {
    int ind, x, y;
    cin >> ind >> x >> y;
    ans[ind - 1].first += x;
    ans[ind - 1].second += 1;
  }
  for (int i = 0; i < 2; i++) {
    if (2 * ans[i].first >= 10 * ans[i].second)
      cout << "LIVE" << endl;
    else
      cout << "DEAD" << endl;
  }
  return 0;
}
