F = list(map(int, input().split())) if 1^(sum(F[:3]) >> 1) ^ F[3]: print("SURVIVED") else: print("DEAD")