X, Y, Z, S = map(int, input().split()) if S or sum([X, Y, X]) < 2: print("SURVIVED") else: print("DEAD")