#include int main(void){ int d[3]; int s; scanf( "%d %d %d %d", &d[0], &d[1], &d[2], &s ); if( d[0] + d[1] + d[2] - ( s * 10 ) < 2 ){ printf( "SURVIVED\n" ); }else{ printf( "DEAD\n" ); } }