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