import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); int d = s.nextInt(); if (d == 1){ System.out.println("SURVIVED"); }else if (a+b+c<2){ System.out.println("SURVIVED"); } else{ System.out.println("DEAD"); } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); } }