#include<stdio.h> int main() { int n = 0, arr[50] = { 0 }, i = 0, tm = 0; scanf("%d", &n); for (; i < n; i++) scanf("%d", &arr[i]); scanf("%d", &arr[n]); for (int i = 0; i <= n - 1; i++) { for (int j = i; j <= n; j++) { if (arr[i] > arr[j]) { tm = arr[i]; arr[i] = arr[j]; arr[j] = tm; } } } for (int i = 0; i <= n; i++) printf("%d ", arr[i]); return 0; }