*D, S = gets.split.map(&:to_i) ans = if D.inject(:+) < 2 || S == 1 "SURVIVED" else "DEAD" end puts ans