a,b,c,s = list(map(int,input().split())) if s == "1": print("SURVIVED") else: count = 0 if a == "1":count += 1 if b == "1":count+=1 if c == "1":count += 1 if count < 2:print("SURVIVED") else: print("DEAD")