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