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