#include
//冒泡排序
void sort(int *a, int n)
{
int i, j, temp;
for (i = 0; i < n; ++i){
for (j = i+1; j < n; ++j){
if (a[i] > a[j]){
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
}
int main()
{
int a[10];
int i, minval, maxval;
//输入10个数
for (i = 0; i < 10; ++i){
scanf("%d", &a[i]);
}
//排序
sort (a, 10);
//输入排序后的结果
for (i = 0; i < 10; ++i){
printf ("%d ", a[i]);
}
printf ("\n");
return 0;
}