D = [int(i) for i in input().strip().split(' ')] S = D.pop(3) print(['SURVIVED', 'DEAD'][sum(D) - S * 10 >= 2])