#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include using namespace std; #define len(n) (int)n.length() #define dump cout #define pb push_back #define ll long long #define make_pair mkp int main() { ios::sync_with_stdio(false); int d[3]; cin >> d[0] >> d[1] >> d[2]; int s; cin >> s; cout << ((((d[0] + d[1] + d[2]) >= 2 ) || s) ? "SURVIVED" : "DEAD") << endl; return 0; }