#include using namespace std; typedef unsigned long long ul; typedef signed long long ll; ul over = 1000000007; int main(void) { cin.tie(0); ios::sync_with_stdio(false); cout << fixed; int a, b, c, d; cin >> a >> b >> c >> d; int d_flg = 0; if (a==1) d_flg++; if (b==1) d_flg++; if (c==1) d_flg++; cout << (d==1 || d_flg < 2 ? "SURVIVED" : "DEAD") << endl; return 0; }