print("DEAD") if list(input().split()).count("1") >= 2 else print("SURVIVED")