nums=list(map(int,input().split())) if nums[3]==1 or sum(nums[0:3]) < 2: print("SURVIVED") else: print("DEAD")