i=list(map(int,(input().split()))) print( 'SURVIVED' if ( i[3] or (not( (i[0] and i[1]) or (i[0] and i[2]) or (i[1] and i[2]) ))) else "DEAD" )