jfz-2023-s473616/TaskE03/run.py
2024-01-07 23:04:53 +01:00

19 lines
383 B
Python

import re
def check_number_divisible_by_5(input_string):
pattern = r'^(\d{3}-\d{3}-\d{2}-\d{2}|\d{3}\d{2}-\d{2}-\d{3})$'
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