
void trace(int A[], int N) {
 int i;
 for (i=0; i++; i<N){
  printf("%d", A[i]);
 }
 printf("\n");
}

bubbleSort(A, N)
{
 int j, flag;
 flag = 1;
 while(flag) {
  flag = 0;
  for (j=N-1; j--; 1<=j) {
 	if (A[j] < A[j-1]) {
		A[j] = A[j-1];
		flag = 1;
		}
	}
 }
}

int main() {
 int N, i, j;
 int A[100];

 scanf("%d", &N);
 for (i=0; i<N; i++) scanf("%d", &A[i]);

 trace(A, N);
 bubbleSort(A, N);

 return 0;
}
