using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Magatro { static void Main() { int[] q = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); if (q[3] == 1) { Console.WriteLine("SURVIVED"); return; } if (q[0] + q[1] + q[2] < 2) { Console.WriteLine("SURVIVED"); return; } Console.WriteLine("DEAD"); return; } }