s = input().strip() count_a = s.count('a') if count_a == 0: print('a') else: print('a' * (count_a + 1))