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