using System; using System.Text; using System.Linq; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); bool tof = false; for(int i = 0; i < S.Length - 2; i++) { if(S[i] == '5' && S[i+1] == '7' && S[i+2] == '5') { Console.WriteLine("YES"); tof = true; break; } } if(tof == false) { Console.WriteLine("NO"); } } } }