A,B,C,S=map(int,input().split()) if S==1 or A+B+C<2: print("SURVIVED") else: print("DEAD")