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 s = sc.nextInt(); String ans = "SURVIVED"; if((s == 0) && (d1 + d2 + d3 >= 2)) ans = "DEAD"; System.out.println(ans); } }