using System; using System.Collections.Generic; using System.Linq; class Program { public void Solve() { string S = Console.ReadLine(); if (0 <= S.IndexOf("575")) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } static void Main() { var solver = new Program(); solver.Solve(); } }