seq = list(map(int,input().split())) count = sum(seq[:3]) if seq[3] == 1: print("SURVIVED") elif count >= 2: print("DEAD") else: print("SURVIVED")