#include using namespace std; int main () { int d1=0, d2=0, d3=0, s=0; cin >> d1 >> d2 >> d3 >> s; if (s == 1 || d1+d2+d3 < 2) cout << "SURVIVED" << endl; else cout << "DEAD" << endl; return 0; }