#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long t[n], x[n], y[n];
  long long a = 0, b = 0;
  for (int i = 0; i < n; i++) {
    cin >> t[i] >> x[i] >> y[i];
    if (t[i] == 1)
      a += x[i];
    else
      b += x[i];
  }
  long long c = count(t, t + n, 1);
  long long d = count(t, t + n, 2);
  long long e = c * 5;
  long long f = d * 5;
  if (a >= e)
    cout << "LIVE"
         << "\n";
  else
    cout << "DEAD"
         << "\n";
  if (b >= f)
    cout << "LIVE"
         << "\n";
  else
    cout << "DEAD"
         << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
