import java.util.*; public 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 n = D1 + D2 + D3; int S = sc.nextInt(); if(S==1){ System.out.println("SURVIVED"); }else if(n<=1){ System.out.println("SURVIVED"); }else{ System.out.println("DEAD"); } } }