//#include #include #include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; int main() { string S; cin>>S; string AN="a"; ll k=0; rep(i,S.size()){ k+=(S[i]=='a'); } rep(i,k){ AN+="a"; } cout<