using System; namespace ConsoleApp11 { class Program { static void Main(string[] args) { int count = 0; int[] d = new int[4]; var input = Console.ReadLine().Split(' '); for(int i = 0; i < 4; i++) { d[i] = int.Parse(input[i]); } if(d[3] == 1) { Console.WriteLine("SURVIVED"); } else if(d[3] == 0) { for(int i = 0; i < 3; i++) { if(d[i] == 1) { count++; } } if(count >= 2) { Console.WriteLine("DEAD"); } } } } }