main = putStrLn . (\[a,b,c,d] -> if (a+b+c < 2) || (d == 1) then "SURVIVED" else "DEAD") . map read . words =<< getLine