import java.util.Scanner; //saiyam9934 public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); sc.close(); // Initialize variables int index = 0; String hello = "hello"; // Iterate through each character in the string for (int i = 0; i < s.length(); i++) { // Check if the current character matches the next character in "hello" if (s.charAt(i) == hello.charAt(index)) { index++; // Move to the next character in "hello" } // Check if all characters in "hello" have been matched if (index == hello.length()) { System.out.println("YES"); return; } } // If we reach here, it means Vasya didn't manage to say hello System.out.println("NO"); } }