#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { int sumD = 0; REP(i, 3) { int d; cin >> d; sumD += d; } int s; cin >> s; if (s == 1) { cout << "SURVIVED" << endl; } else if (sumD >= 2) { cout << "DEAD" << endl; } else { cout << "SURVIVED" << endl; } return 0; }