#include <stdio.h>
#include <stdlib.h>
// typedef struct Node{
//     int data;
//     struct Node* next;
// }Node;

// Node *head = NULL, *tail;

// void create(int num){
//     Node *new = (Node*)malloc(1*sizeof(Node));
//     new->data = num;
//     new->next = NULL;
    
//     if(head==NULL){
//         head = new;
//         tail = new;
//     }
//     else{
//         tail->next = new;
//         tail = new;
//     }
// }

// void display(){
//     Node *i;
//     for(i=head;i!=NULL;i=i->next){
//         if(!(i->data%2==0)){
//             printf("%d ",i->data);
//         }
//     }
//     for(i=head;i!=NULL;i=i->next){
//         if(i->data%2==0){
//             printf("%d ",i->data);
//         }
//     }
// }

int main(){
    // int n,i,num;
    // scanf("%d",&n);
    // if(n<0){
    //     printf("Invalid input");
    //     return 0;
    // }
    // for(i=0;i<n;i++){
    //     if(!(scanf("%d",&num))){
    //         printf("Invalid input");
    //         return 0;
    //     }
    //     create(num);
    // }
    // display();
    // return 0;
    int n, i,even,odd;
    scanf("%d",&n);
    if(n<0){
        printf("Invalid input");
        return 0;
    }
    int arr[n];
    for(i=0;i<n;scanf("%d",&arr[i++]));
    for(i=0;i<n/2;i+2){
        printf("%d",arr[i+1]);
        printf("%d",arr[i]);
    }
    return 0;
}