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