#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int f[4]; rep(i,4) cin >> f[i]; if(f[3]){ cout << "SURVIVED" << endl; return 0; } rep(i,3) f[i+1] += f[i]; if(f[2] >= 2) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; }