even-from-end-1

Problem Description

Given a list of integers, find and display all even numbers from the end of the list.

Input Format

Each line of input begins with an integer N indicating the number of integer n that follow which comprises a list. 

Output Format

All even numbers from the end of the list, each separated by a single space. Separate output for each test case with the newline character. Otherwise, display the words None to display

Constraints

2 ≤ N ≤ 100

-1000 ≤ n ≤ 1000

SAMPLE INPUT
5 10 25 12 4 1 
3 16 28 100

SAMPLE OUTPUT
4 12 10 
100 28 16

Source: hackerearth | Difficulty: EASY


Solutions: