*d,s=map(int, input().split()) print('SURVIVED' if s==1 or sum(d)<2 else 'DEAD')