#include<stdio.h>
main()
{
int temp;
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)//确保a中是最小值;
{
temp=b;
b=a;
a=temp;
}
if(a>c)
{
temp=c;
c=a;
a=temp;
}
if(c<b)//确保c中是最大值;
{
temp=b;
b=c;
c=temp;
}
printf("%d %d %d",c,b,a);
}
main()
{
int temp;
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)//确保a中是最小值;
{
temp=b;
b=a;
a=temp;
}
if(a>c)
{
temp=c;
c=a;
a=temp;
}
if(c<b)//确保c中是最大值;
{
temp=b;
b=c;
c=temp;
}
printf("%d %d %d",c,b,a);
}