#include<stdio.h>
typedef struct {
	int id;
	int left;
	int right;
	int parent;
	int key;
} Node;
int left(int i){
	return 2*i;
}
int right(int i){
	return 2*i+1;
}
int parent(int i){
	return i/2;
}

int main(){

	int i,heapSize;;
	int a[250];

	scanf("%d",&heapSize);
	for(i=0;i<heapSize;i++){
		scanf("%d",&a[i]);
	}
	return 0;
}