#include using namespace std; int main() { cin.sync_with_stdio(0), cin.tie(0), cout.tie(0); int d[10]; int s; int a; for (int i = 0; i < 3; i++) { cin >> d[i]; if (d[i] == 1) { a++; } } cin >> s; if (s == 1) { cout << "SURVIVED" << endl; } else if (a >= 2) { cout << "DEAD" << endl; } else { cout << "SURVIVED" << endl; } }