#include<stdio.h>
#include<stdlib.h>
typedef struct Node {
    int data;
    struct Node *next;
    
}N;
int count;
N *head=NULL,*tail=NULL;
void create (int V)
{
    N *newnode=(N*)malloc(sizeof(N));
    newnode->data=v;
    newnode->next=NULL;
    if(head==NULL) 
    {
        head=tail=newNode;
    }
    else 
    {
        tail->next=newnode;
        tail=newNode;
    }
}
void display() {
    N *temp=head;
    while(temp !=NULL){
        if(temp->data % 2==0){
            printf("%d ",temp->data);
            count++;
        }
        temp=temp->next;
    }
    
}
int main( {
    int n,v;
    if(!scanf("%d",&n)) {
        printf("Invalid input");
        return 0;
    }
    for(int i=0 ; i<n ;i++){
        if(!scanf("%d",&v)){
            printf("Invalid input");
            return 0;
        }
        create(v);
    }
    display();
        if(count==0){
            printf("Empty");
        }
        return 0;
}