#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); string s; cin>>s; int n=s.size(); string a,b; rep(i,n){ if(s[i]>='0' && s[i]<='9') b+=s[i]; else a+=s[i]; } reverse(ALL(a)); cout<