flg = tuple(map(int, input().split())) print("SURVIVED" if flg[-1] == 1 or sum(flg) < 2 else "DEAD")