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