#include int D1,D2,D3,S; int main(){ int count =0; scanf("%d %d %d %d", &D1, &D2, &D3, &S); if(S ==1){ printf("SURVIVED\n"); count =1; } if(count != 1){ if(D1 == 1 || D2 == 1){ if(D3 == 1){ printf("DEAD\n"); count = 2; }else if(D1 == 1 && D2 == 1){ printf("DEAD\n"); count = 2; }else { printf("SURVIVED\n"); count = 2; } } } if(count != 2 && count != 1){ printf("SURVIVED\n"); } return 0; }