#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
#pragma warning(disable : 4996 4018)
using namespace std;
int n;
bool exists[1001];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> n;
  int xa = 0, xb = 0, ya = 0, yb = 0;
  for (int i = 0; i < n; i++) {
    int t, x, y;
    cin >> t >> x >> y;
    if (t == 1) {
      xa += x;
      ya += y;
    } else {
      xb += x;
      yb += y;
    }
  }
  cout << (xa >= ya ? "LIVE" : "DEAD") << '\n';
  cout << (xb >= yb ? "LIVE" : "DEAD") << '\n';
  return 0;
}
