using System; public class Yukicoder { public static void Main() { string n = Console.ReadLine(); Console.WriteLine(n.Length == n.Count(x => x == '9') ? "Yes" : "No"); } }