a, b, c, d = map(int, input().split()) if d == 1: print('SURVIVED') else: l = [a, b, c] if sum(l) >= 2: print('DEAD') else: print('SURVIVED')