import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d = sc.nextInt() + sc.nextInt() + sc.nextInt(); int s = sc.nextInt(); if (s == 1 || d < 2) { System.out.println("SURVIVED"); } else { System.out.println("DEAD"); } } }