flag = list(map(int, input().split())) if sum(flag[0:3]) < 2 or flag[3] == 1: print("SURVIVED") else: print("DEAD")