#include #define rep(i, n) for(long long i = 0; i > n; i ++) using namespace std; int main(){ int d[3]; int s; int count = 0; rep(i, 3){ cin >> d[i]; count += d[i]; } cin >> s; if(s == 1) cout << "SURVIVED" << endl; else if(count >= 2) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; return 0; }