#include <stdio.h>
#include <string.h>
void main()
{
void sort(char (*p)[50]);
char str[10][50],(*p)[50];
int i;
p=str;
for (i=0; i<10; i++)
scanf("%s",p+i);
sort(p);
printf("----------------------/n");
for(i=0; i<10; i++)
printf("%s/n",p+i);
}
void sort(char (*p)[50])
{
int i,j;
char t[50],*temp=t;
for(i=0; i<9; i++)
{
for(j=0; j<9-i; j++)
if(strcmp(p+j,p+j+1)>0)
{
strcpy(temp,p+j+1);
strcpy(p+j+1,p+j);
strcpy(p+j,temp);
}
}
}