#include<iostream>
using namespace std;
int main(){
void sort(int x,int y,int z);
int x,y,z;
cin>>x>y>>z;
sort(x,y,z);
return 0;
}
void sort(int x,int y,int z)
{int temp;
if (x>y){temp=x;x=y;y=temp;} //x=y
if (z<x){cout<<z<<','<<x<<','<<y<<endl;} //zui xiao
else if(z<y)cout<<x<<','<<z<<','<<y<<endl; //
else out<<x<<','<<y<<','<<z<<endl;
}