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