#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 (1 * 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->data%2==0){
        if(found) printf(" ");
        printf("%d",itr->data);
        found = 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;
}