s = gets.split(' ').to_a.map(&:to_i) if s[3] == 1 or s[0]+s[1]+s[2] < 2 puts "SURVIVED" else puts "DEAD" end