#include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (d) { cout << "SURVIVED" << endl; } else { if (a + b + c >= 2) { cout << "DEAD" << endl; } else { cout << "SURVIVED" << endl; } } return 0; }