djfz-2020-s450026/TaskB03/B03.py

11 lines
193 B
Python
Raw Normal View History

2020-11-15 16:00:08 +01:00
import re
import sys
def line_contain_hamlet(line):
return re.search('19[0-9][0-9] r\.', line)
for line in sys.stdin:
if line_contain_hamlet(line):
print(line.rstrip('\n'))