import java.util.*; public class Main_01{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d1 = sc.nextInt(); int d2 = sc.nextInt(); int d3 = sc.nextInt(); int s1 = sc.nextInt(); int d = d1 + d2 + d3; if(d <= 1){ System.out.println("SURVIVED"); }else if(d >= 2 && s1 == 1 ){ System.out.println("SURVIVED"); }else if(d >= 2 && s1== 0){ System.out.println("DEAD"); } } }