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