using System; public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] pass = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string a = Console.ReadLine() ?? string.Empty; if (pass[3] == "1") { Console.WriteLine("SURVIVED"); } else { int n = int.Parse(pass[0]) + int.Parse(pass[1]) + int.Parse(pass[2]); if( n >= 2) { Console.WriteLine("DEAD"); } else { Console.WriteLine("SURVIVED"); } } } }