let () = let d1, d2, d3, s = Scanf.scanf "%d %d %d %d " (fun d1 d2 d3 s -> d1, d2, d3, s) in if s = 1 || d1 + d2 + d3 < 2 then print_endline "SURVIVED" else print_endline "DEAD"