11 lines
214 B
Python
11 lines
214 B
Python
![]() |
import re
|
||
|
import sys
|
||
|
|
||
|
|
||
|
def line_contain_hamlet(line):
|
||
|
return re.search('pies\s|pies\s|\spies\s', line, re.IGNORECASE)
|
||
|
|
||
|
|
||
|
for line in sys.stdin:
|
||
|
if line_contain_hamlet(line):
|
||
|
print(line.rstrip('\n'))
|