#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  while (cin >> n) {
    int sum1 = 0, sum2 = 0, m, ans1 = 0, ans2 = 0;
    for (int i = 0; i < n; i++) {
      cin >> m >> x >> y;
      if (m == 1)
        sum1 += x, ans1++;
      else
        sum2 += x, ans2++;
    }
    if (sum1 >= ans1 * 10 / 2)
      cout << "LIVE" << endl;
    else
      cout << "DEAD" << endl;
    if (sum2 >= ans2 * 10 / 2)
      cout << "LIVE" << endl;
    else
      cout << "DEAD" << endl;
  }
}
