#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int,int>;
const int N = 1e6+10;
char ch;
string s1,s2;
void solve(){
while(cin>>ch){
if(ch>='0'&&ch<='9')s1.push_back(ch);
else s2.push_back(ch);
}
cout<<s2+s1;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
solve();
return 0;
}