#include using namespace std; int main(){ int d1,d2,d3,s; cin >> d1 >> d2 >> d3 >> s; if(d1+d2+d3 == 3) cout << "DEAD" << endl; else cout << "SURVIVED" << endl; }