201409-3 字符串匹配
import re
S = input()
sensitive = int(input())
n = int(input())
data = []
for i in range(n):
data = input()
if sensitive == 1:
if re.search(S,data) != None:
print(data)
else:
# re.IGNORECASE的意思就是忽略大小写
# 以不区分大小写的方式对文本做查找和替换
if re.search(S,data,re.IGNORECASE) != None:
print(data)