*a,b=map(int,input().split()) print(["DEAD","SURVIVED"][b or sum(a)<2])