fn get_line() -> String { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().to_string() } fn main() { let xs: Vec = get_line().split(' ').map(|x| x.parse().unwrap()).collect(); let d = xs.iter().fold(-xs[3], |acc, &x| acc + x); println!("{}", if xs[3] == 1 || d < 2 { "SURVIVED" } else { "DEAD" } ); }