A,B,C,D=map(int,input().split()) O='DEAD' if A+B+C-D*2<2:O='SURVIVED' print(O)