a, b, c, d = io.read("*n", "*n", "*n", "*n") if(a + b + c < 2 or d == 1) then print("SURVIVED") else print("DEAD") end