#include #include #include #include #include #include #include #include #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 using namespace std; int main(void) { bool flag[4]; int count = 0; FOR(i, 0, 3) { cin >> flag[i]; if (flag[i] == 1) { count++; } } if (count >= 2) { cout << "DEAD" << endl; } else { cout << "SURVIVED" << endl; } return 0; }