#include <stdio.h>
void exchange(int *q1,int *q2,int*q3);
void swap(int *pt1,int *pt2);
int main()
{
int a,b,c,*q1,*q2,*q3;
scanf("%d%d%d",&a,&b,&c);
q1=&a;
q2=&b;
q3=&c;
exchange(q1,q2,q3);
printf("%d %d %d\n",a,b,c);
return 0;
}
void swap(int *pt1,int *pt2)
{
int temp;
temp=*pt1;
*pt1=*pt2;
*pt2=temp;
}
void exchange(int *q1,int *q2,int *q3)
{
if(*q1<*q2)
{
swap(q1,q2);
}
if(*q1<*q3)
{
swap(q1,q3);
}
if(*q2<*q3)
{
swap(q2,q3);
}
}
void exchange(int *q1,int *q2,int*q3);
void swap(int *pt1,int *pt2);
int main()
{
int a,b,c,*q1,*q2,*q3;
scanf("%d%d%d",&a,&b,&c);
q1=&a;
q2=&b;
q3=&c;
exchange(q1,q2,q3);
printf("%d %d %d\n",a,b,c);
return 0;
}
void swap(int *pt1,int *pt2)
{
int temp;
temp=*pt1;
*pt1=*pt2;
*pt2=temp;
}
void exchange(int *q1,int *q2,int *q3)
{
if(*q1<*q2)
{
swap(q1,q2);
}
if(*q1<*q3)
{
swap(q1,q3);
}
if(*q2<*q3)
{
swap(q2,q3);
}
}