import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; for(int i = 0; i < 3; i++){ count += sc.nextInt(); } final boolean ok = sc.nextInt() == 1; System.out.println(ok || count < 2 ? "SURVIVED" : "DEAD"); } }