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