#include int main(){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); if(a+b+c+d>=2){ printf("DEAD"); } else{ printf("SURVIVED"); } return 0; }