//No.476 正しくない平均 #include using namespace std; int main() { int i; int iFlag; int iCnt; iCnt = 0; cin >> iFlag; if( iFlag == 1 ) iCnt++; cin >> iFlag; if( iFlag == 1 ) iCnt++; cin >> iFlag; if( iFlag == 1 ) iCnt++; cin >> iFlag; if( iFlag == 1 || iCnt < 2 ) cout << "SURVIVED" << endl; else cout << "DEAD" << endl; return 0; }