#include using namespace std; int main(){ int a, b, c, d; cin >> a >> b >> c >> d; int tmp = a + b + c; if(d == 1){ cout << "SURVIVED" << endl; }else if(tmp <= 1){ cout << "SURVIVED" << endl; }else{ cout << "DEAD" << endl; } }