#include using namespace std; int main() { vector v(4); for( auto &&x : v ) cin >> x; cout << ( v[3] == 1 ? "SURVIVED" : accumulate( v.begin(), v.end(), 0 ) < 2 ? "SURVIVED" : "DEAD" ) << endl; return 0; }