d1,d2,d3,s=map(int,input().split()) print(["SURVIVED","DEAD"][d1+d2+d3>=2 and not s])