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