using System; namespace StudyApp { class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Trim().Split(' '); if (inputs[3].Equals("1")) Console.WriteLine("SURVIVED"); else { int deathCount = 0; for (int i = 0; i < 3; i++) { if (inputs[i].Equals("1")) deathCount++; } if (deathCount >= 2) Console.WriteLine("DEAD"); else Console.WriteLine("SURVIVED"); } } } }