#include<iostream>
using namespace std;
int main( )
{ void sort(int &,int &);
int a,b;
cin>>a>>b;
if(a<b) sort(a,b);
cout<<a<<','<<b<<endl;
return 0;
}
void sort(int &r1,int &r2)
{ int temp;
temp=r1;
r1=r2;
r2=temp;
}
using namespace std;
int main( )
{ void sort(int &,int &);
int a,b;
cin>>a>>b;
if(a<b) sort(a,b);
cout<<a<<','<<b<<endl;
return 0;
}
void sort(int &r1,int &r2)
{ int temp;
temp=r1;
r1=r2;
r2=temp;
}