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