#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, b, c, ma = 0, mb = 0, am = 0, bm = 0;
  cin >> n;
  while (n--) {
    cin >> t >> b >> c;
    if (t == 1) {
      ma += b;
      am += b + c;
    } else {
      mb += b;
      bm += b + c;
    }
  }
  cout << ((ma >= am / 2) ? "LIVE" : "DEAD") << endl;
  cout << ((mb >= bm / 2) ? "LIVE" : "DEAD") << endl;
}
