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