Read n strings and a pattern. Print all strings containing the pattern.
Write a complete program: read the input with input() and print the result with print().
input()
print()
Input
4 ap apple banana grape apricot
Output
apple grape apricot