#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int main() {
	cin >> a >> b >> c >> d;
	cout << (1 - (a + b + c) / 2 + d ? "SURVIVED" : "DEAD") << endl;
	return 0;
}