#yuki_431 s=map(int,raw_input().split()) t=s[:3] if s[3]==1: print "SURVIVED" elif t.count(1)<2: print "SURVIVED" else: print "DEAD"