#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector")
#pragma GCC target( \
    "sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native"
using namespace std;
int main() {
  long long tc, num, t = 1, choose;
  long long sum1 = 0, sum2 = 0;
  scanf("%lld", &tc);
  while (tc--) {
    long long n, a, b;
    cin >> n >> a >> b;
    if (n == 1) {
      sum1 += a - b;
    } else {
      sum2 += a - b;
    }
  }
  if (sum1 >= 0)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (sum2 >= 0)
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
