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