#include<stdio.h>
#include<>stdlib.h>
int main(){
    int n;
    scanf("%d", &n);
    if(n <= 0){
        printf("Invalid input\n");
        return 0;
    }
    int arr[n];
    for(int i = 0; i < n; i++){
        scanf("%d", &arr[i]);
    }
    int *copy = (int *)calloc(n, sizeof(int));
    if(copy == NULL){
        printf("Memory allocation failed");
        return 0;
    }
    for(int i = 0; i < n; i++){
        copy[i] = arr[i];
    }
    for(int i = 0; i < n; i++){
        printf("%d", copy[i]);
}
free(copy);
printf("\nMemory freed successfully");
return 0;
}