11 lines
182 B
Python
11 lines
182 B
Python
import re
|
|
import sys
|
|
|
|
|
|
def line_contain_hamlet(line):
|
|
return re.search('Hamlet', line)
|
|
|
|
|
|
for line in sys.stdin:
|
|
if line_contain_hamlet(line):
|
|
print(line.rstrip('\n')) |