import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int D1 = scan.nextInt(); int D2 = scan.nextInt(); int D3 = scan.nextInt(); int S = scan.nextInt(); scan.close(); int k = D1 + D2 + D3; if(S == 1) { System.out.println("SURVIVED"); }else if(k > 1) { System.out.println("DEAD"); }else { System.out.println("SURVIVED"); } } }