import java.util.Scanner; public class Flag { public static void main(String[] args) { Scanner s = new Scanner(System.in); int count = 0; for(int i = 0;i < 3;i++){ if(s.nextInt() == 1){ count++; } } if(s.nextInt() == 1 || count < 2){ System.out.println("SURVIVED"); }else{ System.out.println("DEAD"); } s.close(); } }