flug = list(map(int,input().split())) if flug.count(1) >= 2 and flug[3] == 0: print("DEAD") else: print("SURVIVED")