module Main where import Control.Applicative main :: IO () main = do [d1, d2, d3, s] <- map read . words <$> getLine putStrLn $ if s == 1 || d1 + d2 + d3 < 2 then "SURVIVED" else "DEAD"