flags = map(int, input().split()) *d, s = flags if s == 1 or sum(d) < 2: print("SURVIVED") else: print("DEAD")