def deadorsurvived(lst): cnt = 0 for i in range(0, 3): cnt += lst[i] if cnt != 0 and lst[3] == 0: return 'DEAD' return 'SURVIVED' inpt = map(int, raw_input().split()) print deadorsurvived(inpt)