package me.yukicoder.lv1; import java.util.Scanner; public class No0431 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int d1 = sc.nextInt(); int d2 = sc.nextInt(); int d3 = sc.nextInt(); int d = d1 + d2 + d3; int S = sc.nextInt(); if (S == 1 || d < 2) { System.out.println("SURVIVED"); } else { System.out.println("DEAD"); } } } }