A,B,C,S=map(int,input().split()) print(('DEAD','SURVIVED')[S*9+2-A-B-C>0])