#C12700. Even Palindrome List
Even Palindrome List
Even Palindrome List
Given a list of integers, your task is to filter out and return those integers that are even palindromes. An even palindrome is defined as a number that is even (divisible by 2) and reads the same forwards and backwards.
For example, for the input list [282, 1331, 1221, 4884, 484, 12321, 1234], the even palindromes are [282, 4884, 484] because these numbers satisfy both conditions.
Note: The input is given through standard input and the output should be printed to standard output.
inputFormat
The first line contains an integer n, representing the number of integers. The second line contains n space-separated integers.
outputFormat
Print the even palindromes from the list in their original order, separated by a space. If there are no even palindromes, output an empty line.## sample
7
282 1331 1221 4884 484 12321 1234
282 4884 484