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