#include using namespace std; typedef long long ll; int main() { int d, e, f, s; cin>>d>>e>>f>>s; if (s||d+e+f<2) puts("SURVIVED"); else puts("DEAD"); return 0; }