*d,s=map(int,input().split()) print('DEAD' if s==0 and sum(d)>1 else 'SURVIVED')