using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int q = Convert.ToInt32(Console.ReadLine()); char[] word = { 'h', 'a', 'c', 'k', 'e', 'r', 'r', 'a', 'n', 'k' }; char[] s; for (int i = 0; i < q; i++) { s = Console.ReadLine().ToLower().ToCharArray(); int len = s.Length; int sum = 0; for(int j=0; j8) break; } if (sum == word.Length) Console.WriteLine("YES"); else Console.WriteLine("NO"); } } }