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