#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, f, x, y, as = 0, at = 0, bs = 0, bt = 0;
  cin >> t;
  while (t--) {
    cin >> f >> x >> y;
    if (f == 1) {
      as += x;
      at += (x + y);
    } else {
      bs += x;
      bt += (x + y);
    }
  }
  if (as >= (at / 2))
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (bs >= (bt / 2))
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  return 0;
}
