newton/solutions/58A.py

10 lines
150 B
Python

import re
s = input()
matches = re.findall(r"[a-z]*h[a-z]*e[a-z]*l[a-z]*l[a-z]*o", s)
if len(matches) >= 1:
print("YES")
else:
print("NO")