a,b,c,d=gets.split.map &:to_i puts d==1 ? "SURVIVED":a+b+c<2 ? "SURVIVED":"DEAD"