d1,d2,d3,s = (int(x) for x in input().split()) if s==0 and d1+d2+d3>1: print("DEAD") else: print("SURVIVED")