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