import collections S = list(input()) CA = collections.Counter(S) print(CA['a']*'a'+'a')