#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
int n;
int t1cnt;
int t2cnt;
int t1s;
int t2s;
int main() {
scanf("%d", &n);
for (int i = 1;i <= n;++i) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a == 1) {
t1cnt++;
t1s += b;
}
else {
t2cnt++;
t2s += b;
}
}
if (t1s >= (t1cnt * 5)) {
printf("LIVE\n");
}
else {
printf("DEAD\n");
}
if (t2s >= (t2cnt * 5)) {
printf("LIVE\n");
}
else {
printf("DEAD\n");
}
return 0;
}