#include <iostream>
using namespace std;
int main()
{
int i,j,pom;
int tablica[12]={5,6,8,1,4,3,0,8,2,7,9,1};
for(i=0;i<12;i++)
cout<<tablica[i]<<", ";
cout<<endl;
for(j=0;j<11;j++)
for(i=0;i<11;i++){
if (tablica[i]>tablica[i+1])
{
pom=tablica[i];
tablica[i]=tablica[i+1];
tablica[i+1]=pom;
}
}
for(i=0;i<12;i++)
cout<<tablica[i]<<", ";
return 0;
}