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