a,b,c,d=map(int,input().split());print(["DEAD","SURVIVED"][d or a+b+c<2])