d1, d2, d3, s = map(int, raw_input().split()) if s == 1: print "SURVIVED" elif d1 + d2 + d3 >= 2: print "DEAD" else: print "SURVIVED"