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