import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int flag1 = sc.nextInt(); int flag2 = sc.nextInt(); int flag3 = sc.nextInt(); int flag4 = sc.nextInt(); int sum = flag1 + flag2 + flag3; if(sum > 1){ if(flag4 == 1){ System.out.println("SURVIVED"); }else{ System.out.println("DEAD"); } }else{ System.out.println("SURVIVED"); } } }