#include<stdio.h>
#include<stdlib.h>
typedef struct node{
    int data;
    struct node *next;
}Node;
Node *head=NULL, *tail =NULL;
int found =0;
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(int max_height){
    Node *itr=head;
   for(itr=head;itr!=NULL;itr=itr->next){
        if(itr->data<=max_height){
            printf("%d ",itr->data);
            found = 1;
        }
    if(found==0){
        printf("Empty");
        return 0;
    }
}
}
int main(){
    int num,size,max_height;
    scanf("%d",&size);
    for(int i=0;i<size;i++){
        scanf("%d",&num);
        create(num);
    }
    display(max_height);
    return 0;
        
}