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