import java.util.*; class y431 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] f = new int[4]; for (int i=0; i<4; i++) f[i]=sc.nextInt(); System.out.println((((f[0]+f[1]+f[2])<2)||(f[3]>0))?"SURVIVED":"DEAD"); sc.close(); } }