#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int sa, la, sb, lb, cona, conb;
  while (scanf("%d", &n) != EOF) {
    sa = sb = la = lb = cona = conb = 0;
    for (int i = 0; i < n; i++) {
      int cas, x, y;
      scanf("%d%d%d", &cas, &x, &y);
      if (cas == 1) {
        cona++;
        sa += x;
        la += x;
      } else {
        conb++;
        sb += x;
        lb += y;
      }
    }
    if ((double)sa / ((double)cona * 10.0) >= 0.50000)
      printf("LIVE\n");
    else
      printf("DEAD\n");
    if ((double)sb / ((double)conb * 10.0) >= 0.50000)
      printf("LIVE\n");
    else
      printf("DEAD\n");
  }
  return 0;
}
