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