a = gets.split.map{|e|e.to_i} if a[0]+a[1]+a[2]<2 || a[3]>0 puts "SURVIVED" else puts "DEAD" end