a,b,c,d = $stdin.gets.chomp.split(" ").map{|s|s.to_i} if d == 1 || (a+b+c) < 2 puts "SURVIVED" else puts "DEAD" end