#include using namespace std; int main(){ int A,B,C; int S; cin >> A >> B >> C; cin >> S; if(S == 1){ cout << "SURVIVED\n"; return 0; }else{ if(A + B + C >= 2){ cout << "DEAD\n"; return 0; }else{ cout << "SURVIVED\n"; } } return 0; }