using System; public class Program { public void Solve() { string[] s = Console.ReadLine().Split(' '); int d = 0; for (int i = 0; i < s.Length; i++) { if (int.Parse(s[i]) == 1) { if (i == 3) { d = 0; } else { d++; } } } if (d >= 2) { Console.WriteLine("DEAD"); } else { Console.WriteLine("SURVIVED"); } } public static void Main(string[] args) { Program program = new Program(); program.Solve(); } }