a,b,c,s = map(int, input().split()) if s==1: print('SURVIVED') else: print('SURVIVED' if a+b+c<=1 else 'DEAD')