S = list(input()) c = S.count("a") print("a" * (c + 1))