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