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