newton/solutions/58A.py

11 lines
150 B
Python
Raw Normal View History

2025-01-14 10:24:54 +00:00
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")