#include <stdio.h>

int main(int argc, const char * argv[]) {
    int flg = 1;
    int num;
    int i;
    int A[100];
    int temp;
    
    scanf("%d", &num);
    
    for(i=0;i<num;i++){
        scanf("%d", &A[i]);
    }
    while(flg){
        flg = 0;
        for(i=num-1;i>0;i--){
            if(A[i] < A[i-1]){
                temp = A[i-1];
                A[i-1] = A[i];
                A[i] = temp;
                flg = 1;
            }
        }
    }
    
    return 0;
}