jfz-2023-s473616/TaskE08/run.py

19 lines
346 B
Python
Raw Permalink Normal View History

2024-01-08 14:14:27 +01:00
import re
def check_number_divisible_by_5(input_string):
pattern = r'^(hi){2,}\!*$'
if re.match(pattern, input_string):
print('yes')
else:
print('no')
if __name__ == "__main__":
try:
while True:
line = input()
check_number_divisible_by_5(line)
except EOFError:
pass