jfz-2023-s473616/TaskE00/run.py

19 lines
356 B
Python
Raw Normal View History

2023-12-11 14:40:10 +01:00
import re
def check_number_divisible_by_5(input_string):
2024-01-07 23:04:53 +01:00
pattern = r'^(5|0|[1-9][0-9]*[05])$'
2023-12-11 14:40:10 +01:00
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