datas = input().split() if datas[3] == "1" or datas.count("1") == 1: s = True else: s = False if s: print("SURVIVED") else: print("DEAD")