#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int cnt = 0; bool S; for (int i = 0; i < 3; i++) { int d; cin >> d; cnt += d; } cin >> S; if (S || cnt < 2) { cout << "SURVIVED" << '\n'; } else { cout << "DEAD" << '\n'; } return 0; }