#include using namespace std; int main(){ int a[4]; int k=0; for(int i=0;i<4;i++){ cin >> a[i]; k+=a[i]; } if(a[3]){ cout << "SURVIVED" << endl; } else{ if(k<2){ cout << "SURVIVED" << endl; } else{ cout << "DEAD" << endl; } } }