#include<stdio.h>
#include<stdlib.h>

typedef struct node
{
    int data;
    struct node *next;
}Node;

Node *head=NULL,*tail;

void create(int num)
{
    Node *newnode=(Node*)malloc(sizeof(Node));
    newnode->data=num;
    newnode->next=NULL;
    if(head==NULL)
    {
        head=newnode;
        tail=newnode;
    }
    else
    {
        tail->next=newnode;
        tail=newnode;
    }
}

void display()
{
    Node *itr=head;
    int found=0;
    while(itr!=NULL){
        if(itr->data%2==0)
        {
            if(found)  printf(" ");
            printf("%d",itr->data);
            foound=1;
        }
        itr=itr->next;
    }
    if(!found)
    printf("Empty");
    
    
       
}

int main()
{
    int n,num,ind;
    scanf("%d",&n);
    for(ind=0;ind<n;ind++)
    {
        if(!scanf("%d",&num))
        {
            printf("Invalid input");
            return 0;
        }
        create(num);
    }
    if(head==NULL)
    {
        printf("Empty");
        return 0;
    }
    display();
    return 0;
}