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