#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; int main(){ ios::sync_with_stdio(false); vector v(4); rep(i,4) cin >> v[i]; if(v[3] == 1 || v[0]+v[1]+v[2]<2){ cout << "SURVIVED" << endl; }else{ cout << "DEAD" << endl; } return 0; }