d1, d2, d3, s = map(int, input().split()) d = d1 + d2 + d3 if s == 1: print("SURVIVED") elif d < 2: print("SURVIVED") else: print("DEAD")