#include using namespace std; int d, s, t; int main() { for (int i = 0; i < 3; i++) { cin >> t; d += t; } cin >> s; if (d >= 2 && !s) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; }