#include <iostream>
#include <vector>
#include <algorithm>

int main(){
  int a, b, c, d;
  
  std::cin >> a >> b >> c >>d ;
  
  if(d == 1 || a + b +c < 2){
  std::cout << "SURVIVED" << std::endl;
  }else{
  std::cout << "DEAD" << std::endl;
  }
  return 0;
  }