import java.io.PrintStream; import java.util.Scanner; public class Y431 { Y431() throws Exception { Scanner in = new Scanner(System.in); PrintStream out = new PrintStream(System.out); int d1 = in.nextInt(); int d2 = in.nextInt(); int d3 = in.nextInt(); int s = in.nextInt(); if (s == 1 || (d1 + d2 + d3) < 2) out.println("SURVIVED"); else out.println("DEAD"); out.close(); } public static void main(String argv[]) throws Exception { new Y431(); } }