import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int d1 = in.nextInt(); int d2 = in.nextInt(); int d3 = in.nextInt(); int s = in.nextInt(); String ans = ""; if(s == 1) { ans = "SURVIVED"; } else { if(d1 + d2 + d3 >= 2) ans = "DEAD"; else ans = "SURVIVED"; } System.out.println(ans); in.close(); } }