#include using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ int c=0; for(int i=0; i<3; i++){ int d; cin >> d; c+=d; } int s; cin >> s; if(s || c<=1) cout << "SURVIVED" << endl; else cout << "DEAD" << endl; return 0; }