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