import java.util.*; import java.util.stream.Stream; public class No431 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d =sc.nextInt() + sc.nextInt() + sc.nextInt(), s = sc.nextInt(); if(s == 1) { System.out.println("SURVIVED"); }else if(d > 2) { System.out.println("DEAD"); }else { System.out.println("SURVIVED"); } } }