F=list(map(int,input().split())) if F[3]==1: print("SURVIVED") elif F[0]+F[1]+F[2]<=1: print("SURVIVED") else: print("DEAD")