a=list(map(int,input().split()));print('SURVIVED'if a[3]==1 or sum(a[:3])<2 else 'DEAD')