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