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