#include <bits/stdc++.h>
int main() {
  int n;
  int a = 0, b = 0;
  int afail = 0, bfail = 0;
  scanf("%d", &n);
  int t[n], x[n], y[n];
  for (int i = 0; i < n; i++) scanf("%d %d %d", &t[i], &x[i], &y[i]);
  for (int i = 0; i < n; i++) {
    if (t[i] == 1) {
      a += x[i];
      afail += y[i];
    } else {
      b += x[i];
      bfail += y[i];
    }
  }
  if (a >= afail)
    printf("LIVE\n");
  else
    printf("DEAD\n");
  if (b >= bfail)
    printf("LIVE");
  else
    printf("DEAD");
  return 0;
}
