#include<stdio.h>
struct Card{char suit,value;};
struct Card t,C1[100],C2[100];
void bubble(struct Card A[],int N){
  int i,j;
  for( i = 0;i < N; i++){
    for(j = N - 1; j >= 0; j--){
      if(A[j].value<A[j-1].value){
	t = A[j];
	A[j] = A[j-1];
	A[j] = t;
      }
    }
  }
}

void selection(Card A[],int N){
  int i,j,minj;
  for( i = 0; i < N; i++){
    minj = i;
    for( j = i; j < N; j++){
      if(A[j].value < A[minj].value)minj=j;
    }
    t = A[i];
    A[i] = A[minj];
    A[minj] = t;
  }
}

void print(Card A[],int N){
  for(i = 0;i < N; i++){
    if(i > 0)printf(" ");
    printf("%d %d",A[i].suit,A[i].value);
  }
  printf("\n");
}

char isStable(){ 

int main(){

  int i,N;
  char C[36];
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&C[i]);
  }

  return 0;

}