*d, s = list(map(int, input().split())) print("SURVIVED" if s or sum(d) < 2 else "DEAD")