#include #include #include using namespace std; int main() { int d, s, f=0; for(int i=0; i<3; i++){ cin >> d; f += d; } cin >> s; cout << (s ? "SURVIVED" : (f < 2 ? "SURVIVED" : "DEAD")) << endl; return 0; }