#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
sort(s.begin(),s.end());
while(s.size()>1 &&s[0]=='0'){
s.erase(0,1);
}
cout<<s;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCl7CiAgc3RyaW5nIHM7CiAgY2luPj5zOwogIHNvcnQocy5iZWdpbigpLHMuZW5kKCkpOwogIHdoaWxlKHMuc2l6ZSgpPjEgJiZzWzBdPT0nMCcpewogICAgICBzLmVyYXNlKDAsMSk7CiAgfQogIGNvdXQ8PHM7Cn0=