#include #include using namespace std; int main() { int a = 0, b = 0, c = 0, d = 0, e = 0; cin >> a >> b >> c >> d; e = a + b + c; if (d == 1 || e < 2) { cout << "SURVIVED" << endl; } else { cout << "DEAD" << endl; } return 0; }