DS = list(map(int, input().split())) if DS[-1] == 1 or sum(DS) < 2: print('SURVIVED') else: print('DEAD')