import sys input = sys.stdin.readline S = list(input())[: -1] res = ["a"] * (S.count("a") + 1) print("".join(res))