def main(): inp = list(map(int, input().split())) yes = "SURVIVED" no = "DEAD" if inp[3] == 1 or sum(inp[0:2]) < 2: print(yes) else: print(no)