using System; using System.Linq; namespace Yukicoder { public class Program { public static void Main(string[] args) { var line = Console.ReadLine().Split(' ').Select(_ => int.Parse(_)).ToArray(); if (line[3] == 1) { Console.WriteLine("SURVIVED"); return; } if (line[0] + line[1] + line[2] >= 2) Console.WriteLine("DEAD"); } } }