list = gets.split.map(&:to_i) if(list[3] == 1) puts "SURVIVED" elsif(list.count(1) > 1) puts "DEAD" else puts "SURVIVED" end