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