#include #include #include int main(void){ int a,s,d,f; scanf("%d%d%d%d",&a,&s,&d,&f); if(f == 1 ||a+s+d<2){ printf("SURVIVED"); } else{ printf("DEAD"); } return 0; }