#define F(i,n) for(int i = 0;i < n;i++) #include int main(void){ int a,r=0; F(i,3){scanf("%d",&a);r+=a;}scanf("%d",&a); if(a==1||r<2)puts("SURVIVED");else puts("DEAD"); return 0; }