d1,d2,d3,s = map(int, raw_input().split()) if s > 0 or d1 + d2 + d3 < 2: print 'SURVIVED' else: print 'DEAD'