from sys import stdin def main(): input = lambda: stdin.readline()[:-1] S = input() n = S.count("a") print("a" * (n + 1)) main()