X=list(map(int,input().split())) if X[-1]==1: print("SURVIVED") elif sum(X)>=2: print("DEAD") else: print("SURVIVED")