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