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 = 0; if (l == 1) { cntDead++; } if(m == 1) { cntDead++; } if(n == 1) { cntDead++; } if(cntDead >= 2) { System.out.println("DEAD"); } else { System.out.println("SURVIVED"); } } } }