#include using namespace std; int main () { int dead_flag[3] = {}; int survived_flag = 0; int dead = 0, survived = 0; for (int i = 0; i < 3; i++) { cin >> dead_flag[i]; if (dead_flag[i] == 1) dead++; } cin >> survived_flag; if (survived_flag > 0) survived++; if (survived == 1 || dead < 2) cout << "SURVIVED" << endl; else cout << "DEAD" << endl; }