lst = [int(i) for i in input().strip().split()] if sum(lst[0:3]) < 2 or lst[3] == 1: print('SURVIVED') else: print('DEAD')