#![allow(dead_code)] use std::io::{stdin, BufRead}; fn solve(s: String) -> &'static str { if s.chars().all(|c| c == '9') { "Yes" } else { "No" } } fn main() { let s = get_line(); println!("{}", solve(s)); } fn get_line() -> String { let mut buf = String::new(); stdin().lock().read_line(&mut buf).unwrap(); buf.trim_end().to_string() }