#include int main(){ int d1,d2,d3,s; scanf("%d %d %d %d\n",&d1,&d2,&d3,&s); if(s){ printf("SURVIVED\n"); return 0; } if(2>(d1+d2+d3)){ printf("SURVIVED\n"); return 0; }else{ printf("DEAD\n"); return 0; } }