d1,d2,d3,s1 = [int(x) for x in input().split()] if s1 == 1: print('SURVIVED') elif d1+d2+d3 < 2: print('SURVIVED') else: print('DEAD')