19 lines
372 B
Python
19 lines
372 B
Python
import re
|
|
|
|
def check_number_divisible_by_5(input_string):
|
|
pattern = r'^(0|25|50|75|[1-9][0-9]*(25|00|50|75))$'
|
|
|
|
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
|