#include using namespace std; int x,y,z,d,l; int main(){ cin>>x>>y>>z>>l; d=x+y+z; if(l||d<2)cout<<"SURVIVED\n"; else cout<<"DEAD\n"; return 0; }