21 lines
394 B
Python
21 lines
394 B
Python
import sys
|
|
|
|
|
|
def is_date_in_line(line):
|
|
index = line.find(' r.')
|
|
if index != -1 and line[index-4] == '1' and line[index-3] == '9':
|
|
year = int(line[index-4:index])
|
|
if 1999 > year > 1900:
|
|
return True
|
|
else:
|
|
return False
|
|
else:
|
|
return False
|
|
|
|
|
|
for line in sys.stdin:
|
|
if is_date_in_line(line):
|
|
print(line.rstrip('\n'))
|
|
|
|
|