using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); Console.WriteLine(s.IndexOf("575") >= 0 ? "YES":"NO"); } }