import java.util.*; class A { static Scanner s = new Scanner(System.in); public static void main(String[] args) { int f = s.nextInt()+s.nextInt()+s.nextInt(); if(s.nextInt()!=1 && f>=2) { System.out.println("DEAD"); } System.out.println("SURVIVED"); } }