L = list(map(int, input().split())) print(['DEAD', 'SURVIVED'][L[-1] == 1 or sum(L[:2]) < 2])