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