d=[int(x) for x in input().split()] print("SURVIVED") if d[3] or sum(d[0:3])<2 else print("DEAD")