#include<stdio.h>
int main()
{
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF)
{
if(a>b){
int t=a;
a=b;
b=t;
}
if(a>c){
int t=a;
a=c;
c=t;
}
if(b>c){
int t=b;
b=c;
c=t;
}
printf("%d,%d,%d\n",a,b,c);
}
return 0;
}
int main()
{
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF)
{
if(a>b){
int t=a;
a=b;
b=t;
}
if(a>c){
int t=a;
a=c;
c=t;
}
if(b>c){
int t=b;
b=c;
c=t;
}
printf("%d,%d,%d\n",a,b,c);
}
return 0;
}