#include using namespace std; int main(){ int D[3], S; cin>> D[0]>> D[1]>> D[2]>> S; int sibo=0; for(int i=0; i<3; i++){ sibo+=D[i]; } if(S){ cout<< "SURVIVED"<< endl; }else if(sibo<2){ cout<< "SURVIVED"<< endl; }else{ cout<< "DEAD"<< endl; } return 0; }