#include<bits/stdc++.h>
using namespace std;
int main(){
int n,g,s,b,x;
cin>>n;
g=n/1%10;
s=n/10%10;
b=n/100;
if(g>s)swap(g,s);
if(g>b)swap(g,b);
if(s>b)swap(s,b);
//cout<<g<<" "<<s<<" "<<b;
-
cout<<b*100+s*10+g;
return 0;
}
/**************************************************************
Problem: 1042
User: lidongbo
Language: C++
Result: Compile Error
****************************************************************/