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