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