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