a = io.read() c = 1 for i = 1, #a do if a:sub(i, i) == "a" then c = c + 1 end end print(string.rep("a", c))