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