#include "stdio.h"
main()
{
int a,b,c;
int x,y,z;
scanf("%d%d%d",&a,&b,&c);
x = a;
if(b<x) x = b;
if(c<x) x = c;
z = a;
if(b>z) z = b;
if(c>z) z = c;
y = a+b+c-x-z;
printf("%d %d %d\n",x,y,z);
}
main()
{
int a,b,c;
int x,y,z;
scanf("%d%d%d",&a,&b,&c);
x = a;
if(b<x) x = b;
if(c<x) x = c;
z = a;
if(b>z) z = b;
if(c>z) z = c;
y = a+b+c-x-z;
printf("%d %d %d\n",x,y,z);
}