#include using namespace std; int main() { int c=0; bool d[3]; bool a; cin >> d[0] >> d[1] >> d[2] >> a; for (int i = 0; i < 3; i++) { if (d[i] == 1) c++; } if (c >= 2 && a == 0) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; return 0; }