l = list(map(int, input().split())) if l[3]!=1: if sum(lis[:3])>=2: print("DEAD") else: print("SURVIVED")