package no431; import java.util.Scanner; 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(); System.out.println((d1 + d2 + d3 >= 2) && s == 0 ? "DEAD" : "SURVIVED"); } }