#include <bits/stdc++.h>
using namespace std;
int n, i, a[2][2], t, x, y;
int main() {
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t >> x >> y;
    a[t & 1][0] += x;
    a[t & 1][1] += y;
  }
  if (a[1][1] <= a[1][0])
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  if (a[0][1] <= a[0][0])
    cout << "LIVE\n";
  else
    cout << "DEAD\n";
  return 0;
}
