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