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