L = list(map(int, input().split())) if L[3] == 1: print('SURVIVED') else: if sum(L[0:3]) >= 2: print('DEAD') else: print('SURVIVED')