djfz-2019-s432813/TaskE02/run

9 lines
189 B
Plaintext
Raw Permalink Normal View History

2019-11-27 17:05:45 +01:00
#!/usr/bin/python3
import sys, re
for line in sys.stdin:
if (re.search(r'(^(?!555)((\d{3})-(\d{3})-(\d{3})$))|((\d{3}) (\d{3}) (\d{3})$)', line)):
print('true')
else:
print('false')