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