#include using namespace std; int main() { int dnum = 0; for(int i = 0; i < 3; i++){ int s;cin >> s; if(s == 1){ dnum++; } } int snum;cin >> snum; if(dnum <2 or snum == 1){ cout << "SURVIVED" << endl; } else { cout << "DEAD" << endl; } return 0; }