a,b,c,d=map(int,input().split()) if d==0 and a+b+c>=2: print("DEAD") else: print("SURVIVED")