#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, x, y, ax = 0, bx = 0, ay = 0, by = 0;
  cin >> n;
  while (n--) {
    cin >> t >> x >> y;
    if (t == 1) {
      ax += x;
      ay += y;
    } else {
      bx += x;
      by += y;
    }
  }
  cout << (ax >= ay ? "LIVE" : "DEAD") << endl;
  cout << (bx >= by ? "LIVE" : "DEAD") << endl;
}
