import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int m = sc.nextInt(); int n = sc.nextInt(); int s = sc.nextInt(); if(s == 1) { System.out.println("SURVIVED"); } else { int cntDead = m + n + s; System.out.println(cntDead == 2 ? "SURVIVED" : "DEAD"); } } }