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