#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using std::bitset;
using namespace std;
int n, a1, a2, b1, b2;
int main() {
  int i, j, tem, x, y;
  while (scanf("%d", &n) != EOF) {
    a1 = a2 = b1 = b2 = 0;
    for (i = 1; i <= n; i++) {
      scanf("%d%d%d", &tem, &x, &y);
      if (tem == 1) {
        a1 += x;
        a2 += y;
      } else {
        b1 += x;
        b2 += y;
      }
    }
    if (a1 >= a2)
      printf("LIVE\n");
    else
      printf("DEAD\n");
    if (b1 >= b2)
      printf("LIVE\n");
    else
      printf("DEAD\n");
  }
  return 0;
}
