import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { int count=0; String h="hackerrank"; char h1[]=h.toCharArray(); Scanner in = new Scanner(System.in); int q = in.nextInt(); for(int a0 = 0; a0 < q; a0++){ String s = in.next(); char c[]=s.toCharArray(); for(int i=0;i=h1.length) System.out.println("YES"); else System.out.println("NO"); count=0; } } }