#include <bits/stdc++.h>

using namespace std;

int main()
{
  int D1, D2, D3, S;
  cin >> D1 >> D2 >> D3 >> S;

  if(S || D1 + D2 + D3 < 2) {
    cout << "SURVIVED" << endl;
  } else {
    cout << "DEAD" << endl;
  }
}