s = list(input()) cnt = 0 for i in s: if i == "a": cnt += 1 ans = "a"*(cnt+1) print(ans)