#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, s, j, k, t, xa = 0, ya = 0, xb = 0, yb = 0;
  cin >> t;
  for (i = 0; i < t; i++) {
    cin >> s;
    if (s == 1) {
      cin >> j >> k;
      xa += j;
      ya += k;
    } else {
      cin >> j >> k;
      xb += j;
      yb += k;
    }
  }
  if (xa >= ya)
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (xb >= yb)
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
}
