*D, S = map(int, input().split()) if S == 1 or sum(D) < 2: print("SURVIVED") else: print("DEAD")