d1, d2, d3, s = map(int, input().split()) if d1 + d2 + d3 - 3 * s >= 2: print("DEAD") else: print("SURVIVED")