#include <bits/stdc++.h>
using namespace std;
int c[2][2];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < (n); i++) {
    int x, a, b;
    scanf("%d%d%d", &x, &a, &b);
    ;
    x--;
    c[x][0] += a;
    c[x][1] += b;
  }
  for (int i = 0; i < (2); i++) puts(c[i][0] >= c[i][1] ? "LIVE" : "DEAD");
}
