Hello-bye P87523


Statement
 

pdf   zip

html

Write a program that reads a sequence of letters that ends with a dot and tells if it contains the succession of consecutive letters ‘h’, ‘e’, ‘l’, ‘l’, ‘o’ or not.

Input

Input consists of a sequence of lowercase letters ended in ‘.’.

Output

Print “hello” if the input consecutively contains the letters ‘h’, ‘e’, ‘l’, ‘l’, ‘o’. Otherwise, print “bye”.

Public test cases
  • Input

    eyhellohowareyou.
    

    Output

    hello
    
  • Input

    hola.
    

    Output

    bye
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java Python