t=list(map(int,input().split(' '))); print('SURVIVED') if t[3] or t[0]+t[1]+t[2]<2 else print('DEAD')