s = input() print(s.count("a") * "a" + "a")