#include "stdio.h"

 
main()
{
  int a[5]={31,2,34,-4,5};
  int i,j,temp;
  for(i=0;i<4;i++)
   {
     for(j=0;j<4;j++)
     if(a[j] > a[j+1])
       {
         temp=a[j];
         a[j]=a[j+1];
         a[j+1]=temp;
       }
   }
 for(i=0;i<5;i++)
  printf("%d\n",a[i]);
}