#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, arr[3], barr[3], b, a, tmp;
  arr[1] = 0;
  arr[2] = 0;
  barr[1] = 0;
  barr[2] = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> tmp >> a >> b;
    arr[tmp] += a;
    barr[tmp] += b;
  }
  if (arr[1] >= barr[1])
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  if (arr[2] >= barr[2])
    cout << "LIVE" << endl;
  else
    cout << "DEAD" << endl;
  return 0;
}
