D_1, D_2, D_3, S = map(int, input().split()) if S == 1 or (D_1 + D_2 + D_3) < 2: print("SURVIVED") else: print("DEAD")