#include <bits/stdc++.h>
using namespace std;
int n, t, x, y, a, b, o, p;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n;
  while (n--) {
    cin >> t >> x >> y;
    if (t == 1)
      a += x, b += y;
    else
      o += x, p += y;
  }
  if (a >= b)
    cout << "LIVE";
  else
    cout << "DEAD";
  cout << endl;
  if (o >= p)
    cout << "LIVE";
  else
    cout << "DEAD";
  return 0;
}
