#include <bits/stdc++.h>
int main() {
  int ans[2][2], a, b, c, n, i;
  while (scanf("%d", &n) != EOF) {
    memset(ans, 0, sizeof(ans));
    for (i = 0; i < n; i++) {
      scanf("%d %d %d", &a, &b, &c);
      ans[a - 1][0] += b;
      ans[a - 1][1] += c;
    }
    for (i = 0; i < 2; i++) {
      if (ans[i][0] >= ans[i][1])
        printf("LIVE\n");
      else
        printf("DEAD\n");
    }
  }
  return 0;
}
