d1, d2, d3, s = map(int, input().split()) if s == 1 or (d1 + d2 + d3) <= 1: print("SURVIVED") else: print("DEAD")