import java.util.*; import java.lang.*; import java.io.*; class Main { public static void main (String[] args) { // 入力値の読み込み Scanner sc = new Scanner(System.in); int d1 = sc.nextInt(); int d2 = sc.nextInt(); int d3 = sc.nextInt(); int s = sc.nextInt(); if(s==1){ System.out.println("SURVIVED"); }else if((d1+d2+d3)<=1){ System.out.println("SURVIVED"); }else{ System.out.println("DEAD"); } } }