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