DS = [DSi == '1' for DSi in input().split()] if sum(DS[:-1]) < 2: print('SURVIVED') elif DS[3]: print('SURVIVED') else: print('DEAD')