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