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