a = input() b = a.split() if b.count('1') >= 2: print('DEAD') else: print('SURVIVED')