#define _CRT_SECURE_NO_WARNINGS #include int main(void) { int D[3], S; scanf("%d %d %d %d", &D[0], &D[1], &D[2], &S); if (S == 1) puts("SURVIVED"); else if (2 <= D[0] + D[1] + D[2]) puts("DEAD"); else puts("SURVIVED"); return 0; }