#include<stdio.h>
#include<stdlib.h>

typedef struct node{
   int data;
   struct node *next;
   
}Node;
  Node *head=NULL,*tail=NULL,*temp;
  int count=0,flag=0;
int create(int val){
    Node *new= (Node*)malloc(sizeof(Node));
    new->data=val;

    
    if(head==NULL){
        head=tail=new;
    }
    else{
        
        tail->next=new;
        tail=new;
    }
}

void display(){
    temp=head;
    while(temp!=NULL){
        count++;
        temp=temp->next;
    }
    int pos=count/2;
    Node *temp2
    while(temp2!=NULL){
        flag++;
        if(flag==pos){
            printf("%d",temp2->data);
        }
        temp2=temp2->next;
    }
}

int main(){
    int n,val;
    
    scanf("%d",&n);
    if(n<0){
        printf("Invalid Input");
        return 0;
    }
    for(int i=0 ; i<=n;i++){
        scanf("%d",&val);
        create(val);
        
    }
    display();
    
    return 0;
}