package yukicoder; import java.util.Scanner; public class No_431 { public static void main(String[] args) { int dead = 0; int survived = 0; Scanner sc = new Scanner(System.in); for(int i = 0; i < 3; i++){ int D = sc.nextInt(); if(D == 1){ dead++; } } int S = sc.nextInt(); if(S == 1){ survived++; } sc.close(); if(dead >= 2 && survived == 0){ System.out.println("DEAD"); }else{ System.out.println("SURVIVED"); } } }