*d,s=map(int,input().split()) print(['DEAD','SURVIVED'][sum(d)<2 or s>0])