s = input() ans = "" s = sorted(s) for i in range(len(s)): if s[i] == "a": ans += "a" continue else: break print(ans+"a")