14 lines
193 B
Python
14 lines
193 B
Python
#!/usr/bin/python3
|
|
|
|
import sys
|
|
|
|
def ham(line):
|
|
if 'Hamlet' in line:
|
|
return True
|
|
else:
|
|
return False
|
|
|
|
for line in sys.stdin:
|
|
if ham(line):
|
|
print(line, end='')
|