*l,m=map(int,input().split()) if m==1:print("SURVIVED");exit() if sum(l)<2:print("SURVIVED");exit() print("DEAD")