S=list(map(int,input().split())) if S[3]==1: print("SURVIVED") else: if sum(S[0:3])>=2: print("DEAD") else: print("SURVIVED")