from collections import Counter def main(): S = input() s_counter = Counter(S) print("a" * (s_counter["a"] + 1)) if __name__ == "__main__": main()