#include <bits/stdc++.h>
using namespace std;
const long long MXN = 1e5 + 7;
const long long MIN = -1e5 - 7;
int main() {
  long long cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0;
  int a, v, b, n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> v >> a >> b;
    if (v == 1) {
      cnt1 += a;
      cnt2 += b;
    } else {
      cnt3 += a;
      cnt4 += b;
    }
  }
  if (cnt1 >= cnt2) {
    cout << "LIVE" << endl;
  } else if (cnt1 < cnt2) {
    cout << "DEAD" << endl;
  }
  if (cnt3 >= cnt4) {
    cout << "LIVE" << endl;
  } else {
    cout << "DEAD" << endl;
  }
  exit(0);
}
