#include using namespace std; int main() { int D1, D2, D3, S; cin >> D1 >> D2 >> D3 >> S; if (S == 1) cout << "SURVIVED" << endl; else if (D1 + D2 + D3 >= 2) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; }