n=int(input()) s=[input().strip() for _ in range(n)] t=input().strip() l=len(t) for i in s: if i[0:l]==t: print(i)
哪里错了啊