a,b,c,s=map(int,input().split()) if sum(a,b,c)>=2 or s==1: print("SURVIVED") else: print("DEAD")