words = input().split()
searched_word = input()

palindromes = [el for el in words if el == el[::-1]]

print(palindromes)
print(f"Found palindrome {palindromes.count(searched_word)} times")
f2b4e12aed7cd39ba7c75671b9c01735024a9763
<mask token>

<mask token>
print(palindromes)
print(f'Found palindrome {palindromes.count(searched_word)} times')

words = input().split()
searched_word = input()
palindromes = [el for el in words if el == el[::-1]]
print(palindromes)
print(f'Found palindrome {palindromes.count(searched_word)} times')

words = input().split()
searched_word = input()

palindromes = [el for el in words if el == el[::-1]]

print(palindromes)
print(f"Found palindrome {palindromes.count(searched_word)} times")