import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int fl1 = sc.nextInt(); int fl2 = sc.nextInt(); int fl3 = sc.nextInt(); int fl4 = sc.nextInt(); int count = fl1+fl2+fl3; if((fl4==1)||(count<2)){ System.out.println("SURVIVED"); }else{ System.out.println("DEAD"); } } }