D1,D2,D3,S = map(int,input().split()) if S==1: print("SURVIVED") exit() else: if D1+D2+D3 <=1: print("SURVIVED") exit() print("DEAD")