F = [int(x) for x in input().split()] F[3] *= -3 print("SURVIVED" if sum(F)<2 else "DEAD")