a,b,c,d=map(int,input().split()) print("SURVIVED" if d == 1 or a+b+c<2 else "DEAD")