// yukicoder: No.431 死亡フラグ // 2019.4.17 bal4u #include int main() { int a, b, c, s; scanf("%d%d%d%d", &a, &b, &c, &s); puts(s || (a+b+c < 2)? "SURVIVED": "DEAD"); return 0; }