jezyki-formalne-i-zlozonosc.../TaskC00_TODO/solution.py

9 lines
162 B
Python
Raw Normal View History

2025-01-06 14:23:50 +01:00
import re
import sys
for line in sys.stdin:
if re.match(r'^-?[1-9][0-9]*0$|^-?[1-9][0-9]*5$|^0$', line):
print('yes')
else:
print('no')