#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;
     }
     if(count==0){
         printf("Empty");
     }
     }
}
int main(){
    
    int n,v;
    scanf("%d",&n);
    if(n<0 || n > 100){
        printf("Invalid input");
        return 0;
    }
    for(int i=0 ; i<n ;i++){
        scanf("%d",&v);
        create(v);
    }
    display();
    
  return 0;  
}