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