#include void solve() { int d = 0; for (int i = 0; i < 3; ++i) { int x; std::cin >> x; d += x; } int s; std::cin >> s; std::cout << (d < 2 || s ? "SURVIVED" : "DEAD") << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }